aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorTorbjörn Andersson2011-09-15 05:49:45 +0200
committerTorbjörn Andersson2011-09-15 05:49:45 +0200
commitfc6fce22212fad5a9c8d15f0b8649eed3b0104b4 (patch)
tree0f6ce46c996d28bfdccdf42a985fee7e089606b4 /engines/tsage
parentf803fa89aedb085570c41da836b35515c7cdf68b (diff)
downloadscummvm-rg350-fc6fce22212fad5a9c8d15f0b8649eed3b0104b4.tar.gz
scummvm-rg350-fc6fce22212fad5a9c8d15f0b8649eed3b0104b4.tar.bz2
scummvm-rg350-fc6fce22212fad5a9c8d15f0b8649eed3b0104b4.zip
TSAGE: Silence GCC warnings
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/blue_force/blueforce_scenes0.cpp2
-rw-r--r--engines/tsage/blue_force/blueforce_ui.cpp2
2 files changed, 3 insertions, 1 deletions
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;
}
}