aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-06 22:20:16 -0400
committerPaul Gilbert2017-08-06 22:20:16 -0400
commit898b79f8dc902d0aff067ac5b7d7ec83d9ac0a73 (patch)
tree32fa4bea77aecdc7dcbfc7f313522c0883abfce3 /engines
parentb5928738474a6b0e2be08ce464bc9c7ebfa5fb0a (diff)
downloadscummvm-rg350-898b79f8dc902d0aff067ac5b7d7ec83d9ac0a73.tar.gz
scummvm-rg350-898b79f8dc902d0aff067ac5b7d7ec83d9ac0a73.tar.bz2
scummvm-rg350-898b79f8dc902d0aff067ac5b7d7ec83d9ac0a73.zip
LURE: Adjust switch fall through comments
Diffstat (limited to 'engines')
-rw-r--r--engines/lure/hotspots.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index 949b16bc7e..b0b1830201 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -2713,7 +2713,7 @@ void HotspotTickHandlers::standardCharacterAnimHandler(Hotspot &h) {
pathFinder.reset(paths);
h.currentActions().top().setAction(PROCESSING_PATH);
- // Deliberate fall through to processing walking path
+ // fall through
case PROCESSING_PATH:
// Handle processing pathfinding
@@ -2801,6 +2801,8 @@ void HotspotTickHandlers::standardCharacterAnimHandler(Hotspot &h) {
if (h.currentActions().isEmpty() || h.currentActions().top().action() != WALKING)
break;
+ // fall through
+
case WALKING:
// The character is currently moving
debugC(ERROR_DETAILED, kLureDebugAnimations, "Hotspot standard character walking");
@@ -3061,7 +3063,8 @@ void HotspotTickHandlers::playerAnimHandler(Hotspot &h) {
// Set current action to processing walking path
actions.pop();
h.currentActions().addFront(PROCESSING_PATH, h.roomNumber());
- // Deliberate fall through to processing walking path
+
+ // fall through
case PROCESSING_PATH:
h.setCharacterMode(CHARMODE_NONE);
@@ -3111,7 +3114,7 @@ void HotspotTickHandlers::playerAnimHandler(Hotspot &h) {
if (mouse.getCursorNum() != CURSOR_CAMERA)
mouse.setCursorNum(CURSOR_ARROW);
- // Deliberate fall through to walking
+ // fall through
case WALKING:
// The character is currently moving
@@ -3600,6 +3603,8 @@ void HotspotTickHandlers::talkAnimHandler(Hotspot &h) {
if (res.getTalkingCharacter() != 0)
return;
+ // fall through
+
case TALK_RESPOND_3:
// Respond
selectedLine = res.getTalkSelection();
@@ -4046,6 +4051,7 @@ void HotspotTickHandlers::rackSerfAnimHandler(Hotspot &h) {
h.setLayer(2);
// fall through
+
case 4:
if (HotspotScript::execute(&h)) {
h.setLayer(255);