diff options
author | Thomas Fach-Pedersen | 2017-08-22 19:51:11 +0200 |
---|---|---|
committer | Thomas Fach-Pedersen | 2017-08-22 19:51:11 +0200 |
commit | 54accdffae0e0d5e9c8ef33eed534bad1089fc42 (patch) | |
tree | c4ef73e043728261ff4ebd6c0e59f6922afe03e0 /engines/bladerunner/actor.cpp | |
parent | a4c799238841e4e9ae63985b503a669449521cd6 (diff) | |
download | scummvm-rg350-54accdffae0e0d5e9c8ef33eed534bad1089fc42.tar.gz scummvm-rg350-54accdffae0e0d5e9c8ef33eed534bad1089fc42.tar.bz2 scummvm-rg350-54accdffae0e0d5e9c8ef33eed534bad1089fc42.zip |
BLADERUNNER: Call AI script when clue is received
Diffstat (limited to 'engines/bladerunner/actor.cpp')
-rw-r--r-- | engines/bladerunner/actor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/bladerunner/actor.cpp b/engines/bladerunner/actor.cpp index 6265a0480a..85c5d89240 100644 --- a/engines/bladerunner/actor.cpp +++ b/engines/bladerunner/actor.cpp @@ -1062,7 +1062,11 @@ void Actor::addClueToDatabase(int clueId, int weight, bool clueAcquired, bool un } void Actor::acquireClue(int clueId, bool unknownFlag, int fromActorId) { + bool hasAlready = hasClue(clueId); _clues->acquire(clueId, unknownFlag, fromActorId); + if (!hasAlready) { + _vm->_aiScripts->ReceivedClue(_id, clueId, fromActorId); + } } void Actor::loseClue(int clueId) { |