mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
FREESCAPE: use safer types when comparing bits
This commit is contained in:
parent
d1e522baca
commit
72162519a6
@ -685,7 +685,7 @@ void FreescapeEngine::toggleGameBit(int index) {
|
||||
_gameStateBits ^= (1 << (index - 1));
|
||||
}
|
||||
|
||||
bool FreescapeEngine::getGameBit(int index) {
|
||||
uint16 FreescapeEngine::getGameBit(int index) {
|
||||
return (_gameStateBits >> (index - 1)) & 1;
|
||||
}
|
||||
|
||||
|
@ -396,7 +396,7 @@ public:
|
||||
void setGameBit(int index);
|
||||
void clearGameBit(int index);
|
||||
void toggleGameBit(int index);
|
||||
bool getGameBit(int index);
|
||||
uint16 getGameBit(int index);
|
||||
|
||||
StateVars _gameStateVars;
|
||||
uint32 _gameStateBits;
|
||||
|
Loading…
x
Reference in New Issue
Block a user