aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanasis Antoniou2019-05-06 21:27:16 +0300
committerThanasis Antoniou2019-05-06 23:53:43 +0300
commit9a510b1c4709e75559108d97c2807fba409ae657 (patch)
tree7286021372577586252839d1d01b2ced364a4acc
parent4cbe0a6fe650045351eeb2f2e62310e0ee6e52cb (diff)
downloadscummvm-rg350-9a510b1c4709e75559108d97c2807fba409ae657.tar.gz
scummvm-rg350-9a510b1c4709e75559108d97c2807fba409ae657.tar.bz2
scummvm-rg350-9a510b1c4709e75559108d97c2807fba409ae657.zip
BLADERUNNER: Fix warning for fall-through switch case
Added a clean "fall through" comment
-rw-r--r--engines/bladerunner/script/ai/officer_leary.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/bladerunner/script/ai/officer_leary.cpp b/engines/bladerunner/script/ai/officer_leary.cpp
index 8d2bd3b9c5..9b9fa3fabf 100644
--- a/engines/bladerunner/script/ai/officer_leary.cpp
+++ b/engines/bladerunner/script/ai/officer_leary.cpp
@@ -494,7 +494,8 @@ bool AIScriptOfficerLeary::GoalChanged(int currentGoalNumber, int newGoalNumber)
default:
return false;
}
- // fall through, a bug in original game?
+ // is falling through here - a bug in original game?
+ // fall through
case 9:
if (Random_Query(1, 2) - 1 == 1) {
AI_Movement_Track_Append(kActorOfficerLeary, 433, 10);
@@ -511,7 +512,8 @@ bool AIScriptOfficerLeary::GoalChanged(int currentGoalNumber, int newGoalNumber)
AI_Movement_Track_Append(kActorOfficerLeary, 420, 10);
AI_Movement_Track_Append(kActorOfficerLeary, 35, 30);
AI_Movement_Track_Repeat(kActorOfficerLeary);
- // fall through, a bug in original game?
+ // is falling through here - a bug in original game?
+ // fall through
case 10:
AI_Movement_Track_Append(kActorOfficerLeary, 310, 0);
AI_Movement_Track_Append(kActorOfficerLeary, 307, 0);