diff options
author | Paul Gilbert | 2012-11-24 22:31:12 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-11-24 22:31:12 +1100 |
commit | b695d9c7090629ed990c49f3b05cce74d4f3b1f7 (patch) | |
tree | 5573009cb20c07e49134c4d01cfa4190aea64515 | |
parent | d52ae2f47be379172ba63810d8c83cd33585ffe6 (diff) | |
download | scummvm-rg350-b695d9c7090629ed990c49f3b05cce74d4f3b1f7.tar.gz scummvm-rg350-b695d9c7090629ed990c49f3b05cce74d4f3b1f7.tar.bz2 scummvm-rg350-b695d9c7090629ed990c49f3b05cce74d4f3b1f7.zip |
HOPKINS: Changed final PlayerCharacter constant to CHARACTER_SAMANTHA
-rw-r--r-- | engines/hopkins/globals.h | 2 | ||||
-rw-r--r-- | engines/hopkins/objects.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/hopkins/globals.h b/engines/hopkins/globals.h index 980593a235..bc87144eb3 100644 --- a/engines/hopkins/globals.h +++ b/engines/hopkins/globals.h @@ -274,7 +274,7 @@ enum SauvegardeOffset { , svField401 = 401 }; -enum PlayerCharacter { CHARACTER_HOPKINS = 0, CHARACTER_HOPKINS_CLONE = 1, CHARACTER_2 = 2 }; +enum PlayerCharacter { CHARACTER_HOPKINS = 0, CHARACTER_HOPKINS_CLONE = 1, CHARACTER_SAMANTHA = 2 }; // TODO: Sauvegrade1 fields should really be mapped into data array struct Sauvegarde { diff --git a/engines/hopkins/objects.cpp b/engines/hopkins/objects.cpp index 8b43ef84e1..fc25712823 100644 --- a/engines/hopkins/objects.cpp +++ b/engines/hopkins/objects.cpp @@ -2750,7 +2750,7 @@ void ObjectsManager::BTGAUCHE() { && !_vm->_globals.PLAN_FLAG && (uint16)(destX - 533) <= 0x1Au && (uint16)(destY - 26) <= 0x21u) { - CHANGE_TETE(CHARACTER_2, CHARACTER_HOPKINS); + CHANGE_TETE(CHARACTER_SAMANTHA, CHARACTER_HOPKINS); return; } if (_vm->_globals.SAUVEGARDE->data[svField357] == 1) { @@ -2765,7 +2765,7 @@ void ObjectsManager::BTGAUCHE() { && !_vm->_globals.PLAN_FLAG && (uint16)(destX - 567) <= 0x1Au && (uint16)(destY - 26) <= 0x21u) { - CHANGE_TETE(CHARACTER_HOPKINS, CHARACTER_2); + CHANGE_TETE(CHARACTER_HOPKINS, CHARACTER_SAMANTHA); return; } } @@ -3077,7 +3077,7 @@ void ObjectsManager::CHANGE_TETE(PlayerCharacter a1, PlayerCharacter a2) { _vm->_globals.NOT_VERIF = 1; _vm->_globals.chemin = (int16 *)g_PTRNUL; - if (a1 == CHARACTER_2 && !a2 && _vm->_globals.SAUVEGARDE->field370.location) { + if (a1 == CHARACTER_SAMANTHA && !a2 && _vm->_globals.SAUVEGARDE->field370.location) { CH_TETE = 0; loc = &_vm->_globals.SAUVEGARDE->field380; loc->xp = XSPR(0); @@ -3103,7 +3103,7 @@ void ObjectsManager::CHANGE_TETE(PlayerCharacter a1, PlayerCharacter a2) { SPRITE(_vm->_globals.PERSO, loc->xp, loc->yp, 0, 64, loc->field4, 0, 34, 190); SPRITE_ON(0); _vm->_globals.HOPKINS_DATA(); - } else if (!a1 && a2 == CHARACTER_2 && _vm->_globals.SAUVEGARDE->field380.location == _vm->_globals.ECRAN) { + } else if (!a1 && a2 == CHARACTER_SAMANTHA && _vm->_globals.SAUVEGARDE->field380.location == _vm->_globals.ECRAN) { CH_TETE = 0; loc = &_vm->_globals.SAUVEGARDE->field370; loc->xp = XSPR(0); @@ -3144,7 +3144,7 @@ void ObjectsManager::CHANGE_TETE(PlayerCharacter a1, PlayerCharacter a2) { loc->location = _vm->_globals.ECRAN; loc->field4 = Sprite[0].fieldC; break; - case CHARACTER_2: + case CHARACTER_SAMANTHA: loc = &_vm->_globals.SAUVEGARDE->field380; loc->xp = XSPR(0); loc->yp = YSPR(0); @@ -3171,7 +3171,7 @@ void ObjectsManager::CHANGE_TETE(PlayerCharacter a1, PlayerCharacter a2) { _vm->_globals.SAUVEGARDE->data[svField357] = 0; _vm->_globals.SORTIE = _vm->_globals.SAUVEGARDE->field360.location; break; - case CHARACTER_2: + case CHARACTER_SAMANTHA: _vm->_globals.SAUVEGARDE->data[svField121] = 0; _vm->_globals.SAUVEGARDE->data[svField354] = 0; _vm->_globals.SAUVEGARDE->data[svField356] = 1; |