File tree Expand file tree Collapse file tree
Core/Libraries/Include/Lib
GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ inline Real deg2rad(Real rad) { return rad * (PI/180); }
8989// -----------------------------------------------------------------------------
9090// TheSuperHackers @build xezon 17/03/2025 Renames BitTest to BitIsSet to prevent conflict with BitTest macro from winnt.h
9191#define BitIsSet ( x, i ) ( ( (x) & (i) ) != 0 )
92- #define BitsAreSet ( x, i ) ( ( (x) & (i) ) == x )
92+ #define BitsAreSet ( x, i ) ( ( (x) & (i) ) == (i) )
9393#define BitSet ( x, i ) ( (x) |= (i) )
9494#define BitClear ( x, i ) ( (x ) &= ~(i) )
9595#define BitToggle ( x, i ) ( (x) ^= (i) )
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ GameMessageDisposition MetaEventTranslator::translateGameMessage(const GameMessa
493493 if (keyDownModState == NONE)
494494 continue ;
495495
496- if (BitsAreSet (keyDownModState, newModState ))
496+ if (BitsAreSet (newModState, keyDownModState ))
497497 continue ;
498498
499499 // Forget that this key and mod state are pressed.
You can’t perform that action at this time.
0 commit comments