aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/script/ai
diff options
context:
space:
mode:
authorThanasis Antoniou2019-06-28 15:30:05 +0300
committerThanasis Antoniou2019-06-28 15:30:44 +0300
commita81e3add2f08692030607c8cde7965475793b86b (patch)
treec7a897ded452d141d110dfb7d0e6d5e1ebf3176f /engines/bladerunner/script/ai
parentbd75898894e0f65663b1bc93c73d4ce0c7a91482 (diff)
downloadscummvm-rg350-a81e3add2f08692030607c8cde7965475793b86b.tar.gz
scummvm-rg350-a81e3add2f08692030607c8cde7965475793b86b.tar.bz2
scummvm-rg350-a81e3add2f08692030607c8cde7965475793b86b.zip
BLADERUNNER: JANITORIAL: Code formatting fixes
Diffstat (limited to 'engines/bladerunner/script/ai')
-rw-r--r--engines/bladerunner/script/ai/generic_walker_a.cpp2
-rw-r--r--engines/bladerunner/script/ai/generic_walker_b.cpp2
-rw-r--r--engines/bladerunner/script/ai/generic_walker_c.cpp2
-rw-r--r--engines/bladerunner/script/ai/gordo.cpp4
-rw-r--r--engines/bladerunner/script/ai/lucy.cpp2
-rw-r--r--engines/bladerunner/script/ai/rachael.cpp6
-rw-r--r--engines/bladerunner/script/ai/zuben.cpp2
7 files changed, 10 insertions, 10 deletions
diff --git a/engines/bladerunner/script/ai/generic_walker_a.cpp b/engines/bladerunner/script/ai/generic_walker_a.cpp
index 57aa681e1c..09be4167c1 100644
--- a/engines/bladerunner/script/ai/generic_walker_a.cpp
+++ b/engines/bladerunner/script/ai/generic_walker_a.cpp
@@ -219,7 +219,7 @@ bool AIScriptGenericWalkerA::UpdateAnimation(int *animation, int *frame) {
_animationFrame = 0;
break;
case kGenericWalkerAStatesWalk:
- switch (Global_Variable_Query(kVariableGenericWalkerAModel)){
+ switch (Global_Variable_Query(kVariableGenericWalkerAModel)) {
case 0:
*animation = 424;
break;
diff --git a/engines/bladerunner/script/ai/generic_walker_b.cpp b/engines/bladerunner/script/ai/generic_walker_b.cpp
index ebeb2d3606..8bd17fa92d 100644
--- a/engines/bladerunner/script/ai/generic_walker_b.cpp
+++ b/engines/bladerunner/script/ai/generic_walker_b.cpp
@@ -205,7 +205,7 @@ bool AIScriptGenericWalkerB::UpdateAnimation(int *animation, int *frame) {
_animationFrame = 0;
break;
case kGenericWalkerBStatesWalk:
- switch (Global_Variable_Query(kVariableGenericWalkerBModel)){
+ switch (Global_Variable_Query(kVariableGenericWalkerBModel)) {
case 0:
*animation = 424;
break;
diff --git a/engines/bladerunner/script/ai/generic_walker_c.cpp b/engines/bladerunner/script/ai/generic_walker_c.cpp
index 3bac200358..159c57a319 100644
--- a/engines/bladerunner/script/ai/generic_walker_c.cpp
+++ b/engines/bladerunner/script/ai/generic_walker_c.cpp
@@ -206,7 +206,7 @@ bool AIScriptGenericWalkerC::UpdateAnimation(int *animation, int *frame) {
_animationFrame = 0;
break;
case kGenericWalkerCStatesWalk:
- switch (Global_Variable_Query(kVariableGenericWalkerCModel)){
+ switch (Global_Variable_Query(kVariableGenericWalkerCModel)) {
case 0:
*animation = 424;
break;
diff --git a/engines/bladerunner/script/ai/gordo.cpp b/engines/bladerunner/script/ai/gordo.cpp
index 7923c0f108..7d47623af2 100644
--- a/engines/bladerunner/script/ai/gordo.cpp
+++ b/engines/bladerunner/script/ai/gordo.cpp
@@ -500,7 +500,7 @@ bool AIScriptGordo::GoalChanged(int currentGoalNumber, int newGoalNumber) {
break;
case kGoalGordoNR02NextAct:
- switch(Global_Variable_Query(kVariableGordosJoke)) {
+ switch (Global_Variable_Query(kVariableGordosJoke)) {
case 0:
Global_Variable_Increment(kVariableGordosJoke, 1);
Actor_Set_Goal_Number(kActorGordo, kGoalGordoNR02TellJoke1);
@@ -1634,7 +1634,7 @@ void AIScriptGordo::talkToMcCoyInCity() {
Game_Flag_Set(kFlagGordoTalk2);
AI_Movement_Track_Unpause(kActorGordo);
} else {
- switch(Random_Query(1, 4)) {
+ switch (Random_Query(1, 4)) {
case 1:
Actor_Says(kActorMcCoy, 6460, 13);
break;
diff --git a/engines/bladerunner/script/ai/lucy.cpp b/engines/bladerunner/script/ai/lucy.cpp
index 37ae7b46e2..5b1b2d3a64 100644
--- a/engines/bladerunner/script/ai/lucy.cpp
+++ b/engines/bladerunner/script/ai/lucy.cpp
@@ -113,7 +113,7 @@ bool AIScriptLucy::Update() {
void AIScriptLucy::TimerExpired(int timer) {
if (timer == kActorTimerAIScriptCustomTask0) { // rephrased this to be more expandable (if required)
AI_Countdown_Timer_Reset(kActorLucy, kActorTimerAIScriptCustomTask0);
- if(Actor_Query_Goal_Number(kActorLucy) == kGoalLucyGoToHF03) {
+ if (Actor_Query_Goal_Number(kActorLucy) == kGoalLucyGoToHF03) {
if (Player_Query_Current_Scene() == kSceneHF03) {
AI_Countdown_Timer_Start(kActorLucy, kActorTimerAIScriptCustomTask0, 20);
} else {
diff --git a/engines/bladerunner/script/ai/rachael.cpp b/engines/bladerunner/script/ai/rachael.cpp
index 000d3d2556..0305dc4bcc 100644
--- a/engines/bladerunner/script/ai/rachael.cpp
+++ b/engines/bladerunner/script/ai/rachael.cpp
@@ -87,7 +87,7 @@ void AIScriptRachael::ClickedByPlayer() {
// the structure is simplified (maintaining the same logic flow)
if ((Player_Query_Agenda() == kPlayerAgendaSurly || Player_Query_Agenda() == kPlayerAgendaErratic)
|| (Player_Query_Agenda() != kPlayerAgendaPolite && Actor_Query_Friendliness_To_Other(kActorSteele, kActorMcCoy) > Actor_Query_Friendliness_To_Other(kActorClovis, kActorMcCoy))
- ){
+ ) {
dialogue_agenda2();
} else {
dialogue_agenda1();
@@ -155,7 +155,7 @@ bool AIScriptRachael::GoalChanged(int currentGoalNumber, int newGoalNumber) {
// the structure is simplified (maintaining the same logic flow)
if ((Player_Query_Agenda() == kPlayerAgendaSurly || Player_Query_Agenda() == kPlayerAgendaErratic)
|| (Player_Query_Agenda() != kPlayerAgendaPolite && Actor_Query_Friendliness_To_Other(kActorSteele, kActorMcCoy) > Actor_Query_Friendliness_To_Other(kActorClovis, kActorMcCoy))
- ){
+ ) {
dialogue_agenda2();
} else {
dialogue_agenda1();
@@ -392,7 +392,7 @@ void AIScriptRachael::dialogue_start() {
if (_vm->_cutContent) {
Actor_Face_Actor(kActorRachael, kActorMcCoy, true);
Loop_Actor_Walk_To_Actor(kActorRachael, kActorMcCoy, 84, false, false);
- if(_vm->_cutContent) {
+ if (_vm->_cutContent) {
Actor_Says(kActorMcCoy, 2735, 14); // MetAtYourUnclesOffice
}
Actor_Says(kActorRachael, 0, 15); // RememberYouMisterMcCoy
diff --git a/engines/bladerunner/script/ai/zuben.cpp b/engines/bladerunner/script/ai/zuben.cpp
index 7cde5456a8..8fbcb77a35 100644
--- a/engines/bladerunner/script/ai/zuben.cpp
+++ b/engines/bladerunner/script/ai/zuben.cpp
@@ -490,7 +490,7 @@ bool AIScriptZuben::GoalChanged(int currentGoalNumber, int newGoalNumber) {
AI_Movement_Track_Append_With_Facing(kActorZuben, 470, 3, 506);
AI_Movement_Track_Append(kActorZuben, 471, 5);
AI_Movement_Track_Append(kActorZuben, 472, 0);
- } else if (rnd2 == 3){
+ } else if (rnd2 == 3) {
AI_Movement_Track_Flush(kActorZuben);
AI_Movement_Track_Append(kActorZuben, 468, 0);
AI_Movement_Track_Append(kActorZuben, 469, 3);