BLADERUNNER: Add DebugMan.clearAllDebugChannels() in shutdown

This commit is contained in:
Thanasis Antoniou 2019-09-10 18:47:05 +03:00
parent e8f009e04f
commit bef3f902e6
3 changed files with 6 additions and 4 deletions

View File

@ -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();

View File

@ -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

View File

@ -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;
}