diff --git a/sc2/src/sc2code/battle.c b/sc2/src/sc2code/battle.c index 34a253057..cb9e0f2fe 100644 --- a/sc2/src/sc2code/battle.c +++ b/sc2/src/sc2code/battle.c @@ -207,7 +207,7 @@ DoBattle (BATTLE_STATE *bs) SleepThreadUntil (bs->NextTime + BATTLE_FRAME_RATE); bs->NextTime = GetTimeCounter (); } - return GLOBAL (CurrentActivity) & IN_BATTLE; + return (BOOLEAN) (GLOBAL (CurrentActivity) & IN_BATTLE); } BOOLEAN diff --git a/sc2/src/sc2code/clock.c b/sc2/src/sc2code/clock.c index 648610c87..6f0f66e1d 100644 --- a/sc2/src/sc2code/clock.c +++ b/sc2/src/sc2code/clock.c @@ -301,7 +301,8 @@ ValidateEvent (EVENT_TYPE type, PCOUNT pmonth_index, PCOUNT pday_index, *pyear_index = year_index; } - return (!(year_index < GLOBAL (GameClock.year_index) + // translation: return (BOOLEAN) !(date < GLOBAL (Gameclock.date)); + return (BOOLEAN) (!(year_index < GLOBAL (GameClock.year_index) || (year_index == GLOBAL (GameClock.year_index) && (month_index < GLOBAL (GameClock.month_index) || (month_index == GLOBAL (GameClock.month_index)