diff options
author | Thanasis Antoniou | 2019-04-20 17:32:47 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-04-20 17:33:39 +0300 |
commit | a663930dd062edd8bfc217fb19a5cbce37705ece (patch) | |
tree | 6d3b81f51280a1c6b59e1570aac3f976b874175a /engines/bladerunner/script/scene/nr02.cpp | |
parent | 63b8ddb50e03a535c4f61a2424914a3c09579197 (diff) | |
download | scummvm-rg350-a663930dd062edd8bfc217fb19a5cbce37705ece.tar.gz scummvm-rg350-a663930dd062edd8bfc217fb19a5cbce37705ece.tar.bz2 scummvm-rg350-a663930dd062edd8bfc217fb19a5cbce37705ece.zip |
BLADERUNNER: Named constants for animationIds P01
Part one of using named constants for model animations
Diffstat (limited to 'engines/bladerunner/script/scene/nr02.cpp')
-rw-r--r-- | engines/bladerunner/script/scene/nr02.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/bladerunner/script/scene/nr02.cpp b/engines/bladerunner/script/scene/nr02.cpp index ea156784d7..e643a6f816 100644 --- a/engines/bladerunner/script/scene/nr02.cpp +++ b/engines/bladerunner/script/scene/nr02.cpp @@ -115,21 +115,21 @@ bool SceneScriptNR02::ClickedOnActor(int actorId) { } bool SceneScriptNR02::ClickedOnItem(int itemId, bool a2) { - if (itemId == kItemGordosLighter1 - || itemId == kItemGordosLighter2 + if (itemId == kItemGordosLighterReplicant + || itemId == kItemGordosLighterHuman ) { if(!Loop_Actor_Walk_To_XYZ(kActorMcCoy, 109.38f, -24.0f, 420.5f, 0, true, false, 0)) { Actor_Face_Heading(kActorMcCoy, 423, false); - if (itemId == kItemGordosLighter1) { - Item_Remove_From_World(kItemGordosLighter1); + if (itemId == kItemGordosLighterReplicant) { + Item_Remove_From_World(kItemGordosLighterReplicant); Item_Pickup_Spin_Effect(953, 214, 380); - Actor_Clue_Acquire(kActorMcCoy, kClueGordosLighter1, true, -1); + Actor_Clue_Acquire(kActorMcCoy, kClueGordosLighterReplicant, true, -1); } - if (itemId == kItemGordosLighter2) { - Item_Remove_From_World(kItemGordosLighter2); + if (itemId == kItemGordosLighterHuman) { + Item_Remove_From_World(kItemGordosLighterHuman); Item_Pickup_Spin_Effect(954, 214, 380); - Actor_Clue_Acquire(kActorMcCoy, kClueGordosLighter2, true, -1); + Actor_Clue_Acquire(kActorMcCoy, kClueGordosLighterHuman, true, -1); } } } |