diff Party.cpp @ 1396:e6908823897f

Research on #62
author Nomad
date Thu, 18 Jul 2013 17:29:20 +0200
parents b51332ab228f
children 7cc3b01a92ac
line wrap: on
line diff
--- a/Party.cpp	Thu Jul 18 17:07:49 2013 +0200
+++ b/Party.cpp	Thu Jul 18 17:29:20 2013 +0200
@@ -1216,16 +1216,16 @@
 //----- (0041F5BE) --------------------------------------------------------
 void __cdecl Sleep6Hours()
 {
-  if ( _506F18_num_hours_to_sleep < 6 )
+  if ( _506F18_num_minutes_to_sleep < 6 )
   {
     pParty->pPlayers[3].SetAsleep(false);
     pParty->pPlayers[2].SetAsleep(false);
     pParty->pPlayers[1].SetAsleep(false);
     pParty->pPlayers[0].SetAsleep(false);
-    if ( _506F18_num_hours_to_sleep )
+    if ( _506F18_num_minutes_to_sleep )
     {
-      Rest(_506F18_num_hours_to_sleep);
-      _506F18_num_hours_to_sleep = 0;
+      Rest(_506F18_num_minutes_to_sleep);
+      _506F18_num_minutes_to_sleep = 0;
       LoadActualSkyFrame();
     }
     if ( dword_506F14 == 2 )
@@ -1253,7 +1253,7 @@
   else
   {
     Rest(6u);
-    _506F18_num_hours_to_sleep -= 6;
+    _506F18_num_minutes_to_sleep -= 6;
     LoadActualSkyFrame();
   }
   viewparams->bRedrawGameUI = 1;