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