diff options
author | Strangerke | 2013-02-16 18:48:55 +0100 |
---|---|---|
committer | Strangerke | 2013-02-16 18:48:55 +0100 |
commit | 979328ebdb1195fc7263c5ebea0e65531a472243 (patch) | |
tree | 177e88329ae4961e1bfde0c1306c607328d9f37e /engines/hopkins/script.cpp | |
parent | 3e0739a49c49ed7aa56677dfbde79bbe84971a78 (diff) | |
download | scummvm-rg350-979328ebdb1195fc7263c5ebea0e65531a472243.tar.gz scummvm-rg350-979328ebdb1195fc7263c5ebea0e65531a472243.tar.bz2 scummvm-rg350-979328ebdb1195fc7263c5ebea0e65531a472243.zip |
HOPKINS: Introduce Directions enum
Diffstat (limited to 'engines/hopkins/script.cpp')
-rw-r--r-- | engines/hopkins/script.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/hopkins/script.cpp b/engines/hopkins/script.cpp index aed99045c4..2d4f3e30ba 100644 --- a/engines/hopkins/script.cpp +++ b/engines/hopkins/script.cpp @@ -955,7 +955,7 @@ int ScriptManager::handleOpcode(byte *dataP) { case 59: { _vm->_globals.NOT_VERIF = true; _vm->_objectsManager._oldCharacterPosX = _vm->_objectsManager.getSpriteX(0); - _vm->_globals._oldDirection = -1; + _vm->_globals._oldDirection = DIR_NONE; _vm->_globals.Compteur = 0; _vm->_linesManager._route = (int16 *)g_PTRNUL; _vm->_linesManager._route = _vm->_linesManager.PARCOURS2(_vm->_objectsManager.getSpriteX(0), _vm->_objectsManager.getSpriteY(0), 445, 332); @@ -1055,7 +1055,7 @@ int ScriptManager::handleOpcode(byte *dataP) { case 81: { _vm->_globals.NOT_VERIF = true; _vm->_objectsManager._oldCharacterPosX = _vm->_objectsManager.getSpriteX(0); - _vm->_globals._oldDirection = -1; + _vm->_globals._oldDirection = DIR_NONE; _vm->_globals.Compteur = 0; _vm->_linesManager._route = (int16 *)g_PTRNUL; _vm->_linesManager._route = _vm->_linesManager.PARCOURS2(_vm->_objectsManager.getSpriteX(0), _vm->_objectsManager.getSpriteY(0), 119, 268); @@ -1372,7 +1372,7 @@ int ScriptManager::handleOpcode(byte *dataP) { case 105: _vm->_globals.NOT_VERIF = true; _vm->_objectsManager._oldCharacterPosX = _vm->_objectsManager.getSpriteX(0); - _vm->_globals._oldDirection = -1; + _vm->_globals._oldDirection = DIR_NONE; _vm->_globals.Compteur = 0; _vm->_linesManager._route = (int16 *)g_PTRNUL; if (_vm->_globals._saveData->_data[svField253] == 1) { @@ -1619,7 +1619,7 @@ int ScriptManager::handleOpcode(byte *dataP) { _vm->_globals._introSpeechOffFl = false; _vm->_globals.NOT_VERIF = true; _vm->_objectsManager._oldCharacterPosX = _vm->_objectsManager.getSpriteX(0); - _vm->_globals._oldDirection = -1; + _vm->_globals._oldDirection = DIR_NONE; _vm->_globals.Compteur = 0; _vm->_globals.NOT_VERIF = true; _vm->_linesManager._route = (int16 *)g_PTRNUL; @@ -1647,7 +1647,7 @@ int ScriptManager::handleOpcode(byte *dataP) { _vm->_globals._introSpeechOffFl = false; _vm->_globals.NOT_VERIF = true; _vm->_objectsManager._oldCharacterPosX = _vm->_objectsManager.getSpriteX(0); - _vm->_globals._oldDirection = -1; + _vm->_globals._oldDirection = DIR_NONE; _vm->_globals.Compteur = 0; _vm->_globals.NOT_VERIF = true; _vm->_linesManager._route = (int16 *)g_PTRNUL; @@ -1949,7 +1949,7 @@ int ScriptManager::handleOpcode(byte *dataP) { _vm->_globals.CACHE_ON(); _vm->_globals.NOT_VERIF = true; _vm->_objectsManager._oldCharacterPosX = _vm->_objectsManager.getSpriteX(0); - _vm->_globals._oldDirection = -1; + _vm->_globals._oldDirection = DIR_NONE; _vm->_globals.Compteur = 0; _vm->_globals.NOT_VERIF = true; _vm->_linesManager._route = (int16 *)g_PTRNUL; |