From a20f90cbb7bfd61ee32ccd32603766de02c03ac8 Mon Sep 17 00:00:00 2001 From: Adrian Frühwirth Date: Sun, 22 Apr 2018 00:49:39 +0200 Subject: JANITORIAL: Fix formatting --- engines/bladerunner/script/ai/generic_walker_a.cpp | 3 +-- engines/bladerunner/script/ai/generic_walker_b.cpp | 3 +-- engines/bladerunner/script/ai/generic_walker_c.cpp | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'engines/bladerunner/script/ai') diff --git a/engines/bladerunner/script/ai/generic_walker_a.cpp b/engines/bladerunner/script/ai/generic_walker_a.cpp index 84f7febc05..0ba48811ed 100644 --- a/engines/bladerunner/script/ai/generic_walker_a.cpp +++ b/engines/bladerunner/script/ai/generic_walker_a.cpp @@ -354,8 +354,7 @@ bool AIScriptGenericWalkerA::prepareWalker() { } else { model = Random_Query(0, 5); } - } - while (model == Global_Variable_Query(kVariableGenericWalkerBModel) || model == Global_Variable_Query(kVariableGenericWalkerCModel)); + } while (model == Global_Variable_Query(kVariableGenericWalkerBModel) || model == Global_Variable_Query(kVariableGenericWalkerCModel)); Global_Variable_Set(kVariableGenericWalkerAModel, model); Game_Flag_Set(kFlagGenericWalkerWaiting); diff --git a/engines/bladerunner/script/ai/generic_walker_b.cpp b/engines/bladerunner/script/ai/generic_walker_b.cpp index cfa9e0470e..2a6c3a1732 100644 --- a/engines/bladerunner/script/ai/generic_walker_b.cpp +++ b/engines/bladerunner/script/ai/generic_walker_b.cpp @@ -330,8 +330,7 @@ bool AIScriptGenericWalkerB::prepareWalker() { } else { model = Random_Query(0, 5); } - } - while (model == Global_Variable_Query(kVariableGenericWalkerAModel) || model == Global_Variable_Query(kVariableGenericWalkerCModel)); + } while (model == Global_Variable_Query(kVariableGenericWalkerAModel) || model == Global_Variable_Query(kVariableGenericWalkerCModel)); Global_Variable_Set(kVariableGenericWalkerBModel, model); Game_Flag_Set(kFlagGenericWalkerWaiting); diff --git a/engines/bladerunner/script/ai/generic_walker_c.cpp b/engines/bladerunner/script/ai/generic_walker_c.cpp index 6979be8e1f..5c0478c645 100644 --- a/engines/bladerunner/script/ai/generic_walker_c.cpp +++ b/engines/bladerunner/script/ai/generic_walker_c.cpp @@ -331,9 +331,8 @@ bool AIScriptGenericWalkerC::prepareWalker() { } else { model = Random_Query(0, 5); } - } // Here is probably bug in original code, because it not using kVariableGenericWalkerBModel but kVariableGenericWalkerCModel - while (model == Global_Variable_Query(kVariableGenericWalkerAModel) || model == Global_Variable_Query(kVariableGenericWalkerBModel)); + } while (model == Global_Variable_Query(kVariableGenericWalkerAModel) || model == Global_Variable_Query(kVariableGenericWalkerBModel)); Global_Variable_Set(kVariableGenericWalkerCModel, model); -- cgit v1.2.3