Skip to content
Permalink
Browse files

BLADERUNNER: Add DebugMan.clearAllDebugChannels() in shutdown

  • Loading branch information...
antoniou79 committed Sep 10, 2019
1 parent e8f009e commit bef3f902e693a4f17fef896d8a991077d1a602a6
@@ -715,6 +715,8 @@ void BladeRunnerEngine::initChapterAndScene() {
}

void BladeRunnerEngine::shutdown() {
DebugMan.clearAllDebugChannels();

_mixer->stopAll();

// BLADE.INI as updated here
@@ -2186,7 +2188,7 @@ void BladeRunnerEngine::newGame(int difficulty) {
for (uint i = 0; i < _gameInfo->getActorCount(); ++i) {
_actors[i]->setup(i);
}
_actors[kActorVoiceOver]->setup(99);
_actors[kActorVoiceOver]->setup(kActorVoiceOver);

for (uint i = 0; i < _gameInfo->getSuspectCount(); ++i) {
_suspectsDatabase->get(i)->reset();
@@ -320,7 +320,7 @@ bool AIScriptDektora::ShotAtAndHit() {

void AIScriptDektora::Retired(int byActorId) {
if (byActorId == kActorMcCoy) {
Actor_Modify_Friendliness_To_Other(kActorClovis, 0, -5);
Actor_Modify_Friendliness_To_Other(kActorClovis, kActorMcCoy, -5);
}

if (byActorId == kActorSteele
@@ -151,14 +151,14 @@ void AIScriptMutant3::OtherAgentEnteredCombatMode(int otherActorId, int combatMo
void AIScriptMutant3::ShotAtAndMissed() {
if (Actor_Query_Goal_Number(kActorMutant3) != 410) {
Actor_Modify_Combat_Aggressiveness(kActorMutant3, 15);
Actor_Modify_Friendliness_To_Other(kActorMutant3, 0, -15);
Actor_Modify_Friendliness_To_Other(kActorMutant3, kActorMcCoy, -15);
}
}

bool AIScriptMutant3::ShotAtAndHit() {
if (Actor_Query_Goal_Number(kActorMutant3) != 410) {
Actor_Modify_Combat_Aggressiveness(kActorMutant3, 20);
Actor_Modify_Friendliness_To_Other(kActorMutant3, 0, -20);
Actor_Modify_Friendliness_To_Other(kActorMutant3, kActorMcCoy, -20);
}
return false;
}

0 comments on commit bef3f90

Please sign in to comment.
You can’t perform that action at this time.