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.
This commit is contained in:
Torbjörn Andersson 2014-02-12 22:15:28 +01:00
parent cb2b1d5ca1
commit 243bb0dea7

View file

@ -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: