diff options
author | Peter Kohaut | 2019-01-19 23:12:45 +0100 |
---|---|---|
committer | Peter Kohaut | 2019-01-19 23:15:41 +0100 |
commit | 5e2fb6fb2672137f9dbcf6f17b8de9c312b236e6 (patch) | |
tree | 3ec28e49d9f51e6c40df9c5a0f2da35080d65905 /engines/bladerunner/script/ai/sergeant_walls.cpp | |
parent | f7754012dd1766959aaf4eca8ad3028afab5d7d0 (diff) | |
download | scummvm-rg350-5e2fb6fb2672137f9dbcf6f17b8de9c312b236e6.tar.gz scummvm-rg350-5e2fb6fb2672137f9dbcf6f17b8de9c312b236e6.tar.bz2 scummvm-rg350-5e2fb6fb2672137f9dbcf6f17b8de9c312b236e6.zip |
BLADERUNNER: More variable names in the game scripts
Fixed some errors as well
Diffstat (limited to 'engines/bladerunner/script/ai/sergeant_walls.cpp')
-rw-r--r-- | engines/bladerunner/script/ai/sergeant_walls.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/bladerunner/script/ai/sergeant_walls.cpp b/engines/bladerunner/script/ai/sergeant_walls.cpp index 2c2ae2bd5d..d657f3180c 100644 --- a/engines/bladerunner/script/ai/sergeant_walls.cpp +++ b/engines/bladerunner/script/ai/sergeant_walls.cpp @@ -35,8 +35,10 @@ void AIScriptSergeantWalls::Initialize() { } bool AIScriptSergeantWalls::Update() { - if (Game_Flag_Query(206) && Game_Flag_Query(158)) { - Game_Flag_Reset(206); + if (Game_Flag_Query(kFlagSergeantWallsBuzzInRequest) + && Game_Flag_Query(kFlagSergeantWallsBuzzInDone) + ) { + Game_Flag_Reset(kFlagSergeantWallsBuzzInRequest); } return false; } @@ -97,11 +99,13 @@ bool AIScriptSergeantWalls::UpdateAnimation(int *animation, int *frame) { switch (_animationState) { case 0: _animationFrame++; - if (Game_Flag_Query(206) && !Game_Flag_Query(158)) { + if ( Game_Flag_Query(kFlagSergeantWallsBuzzInRequest) + && !Game_Flag_Query(kFlagSergeantWallsBuzzInDone) + ) { *animation = 724; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(724)) { _animationFrame = 0; - Game_Flag_Set(158); + Game_Flag_Set(kFlagSergeantWallsBuzzInDone); } } else { *animation = 722; |