summaryrefslogtreecommitdiff
path: root/src-04_stop-non-faction-npc-sleep-depirvation.patch
blob: fb8941c113daae4bb81e32990b28fc67e83d1ce6 (plain)
1
2
3
4
5
6
7
8
9
10
--- a/src/npcmove.cpp
+++ b/src/npcmove.cpp
@@ -1871,6 +1871,7 @@
         if( !is_player_ally() ) {
             // TODO: Make tired NPCs handle sleep offscreen
             set_fatigue( 0 );
+            set_sleep_deprivation( 0 );
             return npc_undecided;
         }