aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authorTorbjörn Andersson2014-02-12 22:15:28 +0100
committerTorbjörn Andersson2014-02-12 22:15:28 +0100
commit243bb0dea766e30f52826d523d5f40146b3c5bc3 (patch)
tree9835ede9c78ee07d7e544d10b1cca556dd668449 /engines/avalanche
parentcb2b1d5ca1e28a1192e86a89b37006d72cc6b078 (diff)
downloadscummvm-rg350-243bb0dea766e30f52826d523d5f40146b3c5bc3.tar.gz
scummvm-rg350-243bb0dea766e30f52826d523d5f40146b3c5bc3.tar.bz2
scummvm-rg350-243bb0dea766e30f52826d523d5f40146b3c5bc3.zip
AVALANCHE: Silence GCC warnings
Mainly, GCC complained about case labels having a value less than the minimum value for the type. Probably because character literals may be signed or unsigned, while _trigger is always unsigned.
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/help.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/avalanche/help.cpp b/engines/avalanche/help.cpp
index 12ea31ebde..c8b71e0177 100644
--- a/engines/avalanche/help.cpp
+++ b/engines/avalanche/help.cpp
@@ -93,7 +93,7 @@ void Help::switchPage(byte which) {
_buttons[y]._trigger = file.readByte();
if (_buttons[y]._trigger == 177)
break;
- byte index = file.readByte();
+ index = file.readByte();
if (_buttons[y]._trigger != 0)
_vm->_graphics->helpDrawButton(13 + (y + 1) * 27, index);
_buttons[y]._whither = file.readByte(); // This is the position to jump to.
@@ -103,10 +103,10 @@ void Help::switchPage(byte which) {
case 254:
text = Common::String("Esc");
break;
- case 'Ö':
+ case 214: // 'Ö'
text = Common::String(24);
break;
- case 'Ø':
+ case 216: // 'Ø'
text = Common::String(25);
break;
default: