OSDN Git Service

12:00-18:00の時間帯に宿屋に泊まれていたバグを修正.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 4 Sep 2003 07:12:26 +0000 (07:12 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 4 Sep 2003 07:12:26 +0000 (07:12 +0000)
src/bldg.c

index 6424768..a8163e4 100644 (file)
@@ -2767,8 +2767,6 @@ msg_print("
  */
 static bool inn_comm(int cmd)
 {
-       int dawnval;
-
        switch (cmd)
        {
                case BACT_FOOD: /* Buy food & drink */
@@ -2792,9 +2790,8 @@ msg_print("
                        break;
 
                case BACT_REST: /* Rest for the night */
-                       dawnval = ((turn % (TURNS_PER_TICK * TOWN_DAWN)));
-                       if (dawnval > (TURNS_PER_TICK * TOWN_DAWN)/4)
-                       {  /* nighttime */
+                       if (!is_daytime()) /* Nighttime only */
+                       {
                                if ((p_ptr->poisoned) || (p_ptr->cut))
                                {
 #ifdef JP