diff options
author | Peter Kohaut | 2017-03-29 01:50:47 +0200 |
---|---|---|
committer | Peter Kohaut | 2017-03-29 01:55:06 +0200 |
commit | d42b39817d89421b932f2b4079a2bed0b737754c (patch) | |
tree | 7eccdb4280cbd8ebbe5f7a7798ac8f9722ea1b64 /engines/bladerunner/script/ai.cpp | |
parent | 4564b84d918e13bfceed4338aa3111bf468b0f0e (diff) | |
download | scummvm-rg350-d42b39817d89421b932f2b4079a2bed0b737754c.tar.gz scummvm-rg350-d42b39817d89421b932f2b4079a2bed0b737754c.tar.bz2 scummvm-rg350-d42b39817d89421b932f2b4079a2bed0b737754c.zip |
BLADERUNNER: introduced some game constants
Game script are more readable now
Fixed name of Officer Leary
Diffstat (limited to 'engines/bladerunner/script/ai.cpp')
-rw-r--r-- | engines/bladerunner/script/ai.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/bladerunner/script/ai.cpp b/engines/bladerunner/script/ai.cpp index d51200dc55..57ef099907 100644 --- a/engines/bladerunner/script/ai.cpp +++ b/engines/bladerunner/script/ai.cpp @@ -37,9 +37,9 @@ AIScripts::AIScripts(BladeRunnerEngine *vm, int actorsCount) : _vm(vm), _inScrip _actorUpdating[i] = false; } - _AIScripts[0] = new AIScriptMcCoy(_vm); - _AIScripts[15] = new AIScriptRunciter(_vm); - _AIScripts[23] = new AIScriptOfficerLeroy(_vm); + _AIScripts[kActorMcCoy] = new AIScriptMcCoy(_vm); + _AIScripts[kActorRunciter] = new AIScriptRunciter(_vm); + _AIScripts[kActorOfficerLeary] = new AIScriptOfficerLeary(_vm); } AIScripts::~AIScripts() { @@ -53,8 +53,9 @@ AIScripts::~AIScripts() { void AIScripts::Initialize(int actor) { assert(actor < _actorsCount); - if (_AIScripts[actor]) + if (_AIScripts[actor]) { _AIScripts[actor]->Initialize(); + } } void AIScripts::Update(int actor) { |