diff options
author | Peter Kohaut | 2017-04-02 18:17:43 +0200 |
---|---|---|
committer | Peter Kohaut | 2017-04-02 18:19:26 +0200 |
commit | 027dc4c38c033dcae3dd0ed485b56f587ee05b44 (patch) | |
tree | 286f20a767d4ea56c1e6d22c46b93e15cff330a3 /engines/bladerunner/actor.cpp | |
parent | 06be112b22531f2658dbec0362beb66c32c0db9c (diff) | |
download | scummvm-rg350-027dc4c38c033dcae3dd0ed485b56f587ee05b44.tar.gz scummvm-rg350-027dc4c38c033dcae3dd0ed485b56f587ee05b44.tar.bz2 scummvm-rg350-027dc4c38c033dcae3dd0ed485b56f587ee05b44.zip |
BLADERUNNER: fixed lighting cache
actors can be now partially illuminated (per slice), it iss visible in scene rc02 in the right part of the room
Diffstat (limited to 'engines/bladerunner/actor.cpp')
-rw-r--r-- | engines/bladerunner/actor.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/bladerunner/actor.cpp b/engines/bladerunner/actor.cpp index 52cebb659d..49a66d9ef6 100644 --- a/engines/bladerunner/actor.cpp +++ b/engines/bladerunner/actor.cpp @@ -1057,11 +1057,11 @@ bool Actor::isSpeeching() { return _vm->_audioSpeech->isPlaying(); } -void Actor::addClueToDatabase(int clueId, int unknown, bool clueAcquired, bool unknownFlag, int fromActorId) { - _clues->add(_id, clueId, unknown, clueAcquired, unknownFlag, fromActorId); +void Actor::addClueToDatabase(int clueId, int weight, bool clueAcquired, bool unknownFlag, int fromActorId) { + _clues->add(_id, clueId, weight, clueAcquired, unknownFlag, fromActorId); } -void Actor::acquireClue(int clueId, byte unknownFlag, int fromActorId) { +void Actor::acquireClue(int clueId, bool unknownFlag, int fromActorId) { _clues->acquire(clueId, unknownFlag, fromActorId); } @@ -1078,9 +1078,10 @@ void Actor::copyClues(int actorId) { for (int i = 0; i < (int)_vm->_gameInfo->getClueCount(); i++) { if (hasClue(i) && !_clues->isFlag4(i) && !otherActor->hasClue(i)) { int fromActorId = _id; - if (_id == VOICEOVER_ACTOR) + if (_id == VOICEOVER_ACTOR) { fromActorId = _clues->getFromActorId(i); - otherActor->acquireClue(i, 0, fromActorId); + } + otherActor->acquireClue(i, false, fromActorId); } } } |