diff options
author | Strangerke | 2014-01-07 07:26:53 +0100 |
---|---|---|
committer | Strangerke | 2014-01-07 07:27:29 +0100 |
commit | e6e8008e67224f4a45f9965d1e00cb3da5f9652a (patch) | |
tree | b0844906d33159ab5696da75aef0c6345766df0e /engines/voyeur/events.cpp | |
parent | 3eff4af3c514f75eaa6e91ab94fd644d69557341 (diff) | |
download | scummvm-rg350-e6e8008e67224f4a45f9965d1e00cb3da5f9652a.tar.gz scummvm-rg350-e6e8008e67224f4a45f9965d1e00cb3da5f9652a.tar.bz2 scummvm-rg350-e6e8008e67224f4a45f9965d1e00cb3da5f9652a.zip |
VOYEUR: Change some more types, add comments about unused variables
Diffstat (limited to 'engines/voyeur/events.cpp')
-rw-r--r-- | engines/voyeur/events.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index ba86ba8f58..deaa978a46 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -57,8 +57,8 @@ IntData::IntData() { field26 = 0; field2A = 0; field38 = false; - field3B = 0; - field3D = 0; + field3B = false; + field3D = false; _palStartIndex = 0; _palEndIndex = 0; _palette = NULL; @@ -168,13 +168,13 @@ void EventsManager::voyeurTimer() { // _gameData.field1C += _gameData._timerFn; *** WHY INC field by a function pointer?! _gameData.field16 = 0; - _gameData.field3D = 1; + _gameData.field3D = true; if (--_gameData.field26 <= 0) { if (_gameData._flipWait) { _gameData.field38 = true; _gameData._flipWait = false; - _gameData.field3B = 0; + _gameData.field3B = false; } _gameData.field26 >>= 8; @@ -317,7 +317,7 @@ void EventsManager::startFade(CMapResource *cMap) { } if (cMap->_fadeStatus & 2) - _intPtr.field3B = 1; + _intPtr.field3B = true; _fadeIntNode._flags &= ~1; } else { byte *vgaP = &_vm->_graphicsManager._VGAColors[_fadeFirstCol * 3]; @@ -359,7 +359,7 @@ void EventsManager::addFadeInt() { } void EventsManager::vDoFadeInt() { - if (_intPtr.field3B & 1) + if (_intPtr.field3B) return; if (--_fadeCount == 0) { _fadeIntNode._flags |= 1; |