diff options
author | Strangerke | 2012-12-29 14:20:34 +0100 |
---|---|---|
committer | Strangerke | 2012-12-29 14:20:34 +0100 |
commit | b284338d6778775ab755af487dfd52d05b953e45 (patch) | |
tree | 084fe31586a767f3cc8fa3f841b9963fc266bdd5 /engines/hopkins/graphics.cpp | |
parent | 0adb2a31da83003038531b2a7b14448af7736fc5 (diff) | |
download | scummvm-rg350-b284338d6778775ab755af487dfd52d05b953e45.tar.gz scummvm-rg350-b284338d6778775ab755af487dfd52d05b953e45.tar.bz2 scummvm-rg350-b284338d6778775ab755af487dfd52d05b953e45.zip |
HOPKINS: Some refactoring in ObjectManager, some renaming
Diffstat (limited to 'engines/hopkins/graphics.cpp')
-rw-r--r-- | engines/hopkins/graphics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp index 0facdf85d4..455c3c41b9 100644 --- a/engines/hopkins/graphics.cpp +++ b/engines/hopkins/graphics.cpp @@ -1107,7 +1107,7 @@ void GraphicsManager::Sprite_Vesa(byte *surface, const byte *spriteData, int xp, void GraphicsManager::FIN_VISU() { for (int idx = 1; idx <= 20; ++idx) { - if (_vm->_globals.Bqe_Anim[idx].field4 == 1) + if (_vm->_globals.Bqe_Anim[idx]._enabledFl) _vm->_objectsManager.BOB_OFF(idx); } @@ -1115,22 +1115,22 @@ void GraphicsManager::FIN_VISU() { _vm->_eventsManager.VBL(); for (int idx = 1; idx <= 20; ++idx) { - if (_vm->_globals.Bqe_Anim[idx].field4 == 1) + if (_vm->_globals.Bqe_Anim[idx]._enabledFl) _vm->_objectsManager.BOB_ZERO(idx); } for (int idx = 1; idx <= 29; ++idx) { - _vm->_globals.BL_ANIM[idx].v1 = 0; + _vm->_globals._lockedAnims[idx]._enableFl = false; } for (int idx = 1; idx <= 20; ++idx) { - _vm->_globals.Bqe_Anim[idx].field4 = 0; + _vm->_globals.Bqe_Anim[idx]._enabledFl = false; } } void GraphicsManager::VISU_ALL() { for (int idx = 1; idx <= 20; ++idx) { - if (_vm->_globals.Bqe_Anim[idx].field4 == 1) + if (_vm->_globals.Bqe_Anim[idx]._enabledFl) _vm->_objectsManager.BOB_VISU(idx); } } |