From 898b79f8dc902d0aff067ac5b7d7ec83d9ac0a73 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 6 Aug 2017 22:20:16 -0400 Subject: LURE: Adjust switch fall through comments --- engines/lure/hotspots.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'engines') 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); -- cgit v1.2.3