Skip to content

Commit 061bd82

Browse files
committed
But the fix behind !RETAIL_COMPATIBLE_CRC
1 parent c9a9a0d commit 061bd82

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Generals/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptActions.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2897,12 +2897,20 @@ void ScriptActions::doCameraMotionBlur(Bool zoomIn, Bool saturate)
28972897

28982898
static PlayerMaskType getHumanPlayerMask( void )
28992899
{
2900+
#if RETAIL_COMPATIBLE_CRC
2901+
PlayerMaskType mask;
2902+
#else
29002903
PlayerMaskType mask = 0;
2904+
#endif
29012905
for (Int i=0; i<ThePlayerList->getPlayerCount(); ++i)
29022906
{
29032907
const Player *player = ThePlayerList->getNthPlayer(i);
29042908
if (player->getPlayerType() == PLAYER_HUMAN)
2909+
#if RETAIL_COMPATIBLE_CRC
2910+
mask &= player->getPlayerMask();
2911+
#else
29052912
mask |= player->getPlayerMask();
2913+
#endif
29062914
}
29072915

29082916
//DEBUG_LOG(("getHumanPlayerMask(): mask was %4.4X\n", mask));

GeneralsMD/Code/GameEngine/Source/GameLogic/ScriptEngine/ScriptActions.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2993,12 +2993,20 @@ void ScriptActions::doCameraMotionBlur(Bool zoomIn, Bool saturate)
29932993

29942994
static PlayerMaskType getHumanPlayerMask( void )
29952995
{
2996+
#if RETAIL_COMPATIBLE_CRC
2997+
PlayerMaskType mask;
2998+
#else
29962999
PlayerMaskType mask = 0;
3000+
#endif
29973001
for (Int i=0; i<ThePlayerList->getPlayerCount(); ++i)
29983002
{
29993003
const Player *player = ThePlayerList->getNthPlayer(i);
30003004
if (player->getPlayerType() == PLAYER_HUMAN)
3005+
#if RETAIL_COMPATIBLE_CRC
3006+
mask &= player->getPlayerMask();
3007+
#else
30013008
mask |= player->getPlayerMask();
3009+
#endif
30023010
}
30033011

30043012
//DEBUG_LOG(("getHumanPlayerMask(): mask was %4.4X\n", mask));

0 commit comments

Comments
 (0)