Eliminated some MSVC (?) warnings.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1386 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user