From fc6fce22212fad5a9c8d15f0b8649eed3b0104b4 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 15 Sep 2011 05:49:45 +0200 Subject: TSAGE: Silence GCC warnings --- engines/tsage/blue_force/blueforce_scenes0.cpp | 2 +- engines/tsage/blue_force/blueforce_ui.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/tsage/blue_force') diff --git a/engines/tsage/blue_force/blueforce_scenes0.cpp b/engines/tsage/blue_force/blueforce_scenes0.cpp index ac8fe46096..35cccdf328 100644 --- a/engines/tsage/blue_force/blueforce_scenes0.cpp +++ b/engines/tsage/blue_force/blueforce_scenes0.cpp @@ -567,7 +567,7 @@ bool Scene60::Ignition::check1() { else BF_GLOBALS._v5098C |= 2; } else { - int v = ((BF_GLOBALS._v5098C >> 2) & 15 + 1) & 15; + int v = (((BF_GLOBALS._v5098C >> 2) & 15) + 1) & 15; BF_GLOBALS._v5098C = (BF_GLOBALS._v5098C & 0xC3) | (v << 2); if ((v != 1) && (v != 2)) { diff --git a/engines/tsage/blue_force/blueforce_ui.cpp b/engines/tsage/blue_force/blueforce_ui.cpp index 75ab9a60a4..89a7d85f89 100644 --- a/engines/tsage/blue_force/blueforce_ui.cpp +++ b/engines/tsage/blue_force/blueforce_ui.cpp @@ -203,6 +203,8 @@ void UIInventoryScroll::process(Event &event) { // Scroll the inventory as necessary BF_GLOBALS._uiElements.scrollInventory(_isLeft); event.handled = true; + break; + default: break; } } -- cgit v1.2.3