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:
parent
cb2b1d5ca1
commit
243bb0dea7
1 changed files with 3 additions and 3 deletions
|
@ -93,7 +93,7 @@ void Help::switchPage(byte which) {
|
||||||
_buttons[y]._trigger = file.readByte();
|
_buttons[y]._trigger = file.readByte();
|
||||||
if (_buttons[y]._trigger == 177)
|
if (_buttons[y]._trigger == 177)
|
||||||
break;
|
break;
|
||||||
byte index = file.readByte();
|
index = file.readByte();
|
||||||
if (_buttons[y]._trigger != 0)
|
if (_buttons[y]._trigger != 0)
|
||||||
_vm->_graphics->helpDrawButton(13 + (y + 1) * 27, index);
|
_vm->_graphics->helpDrawButton(13 + (y + 1) * 27, index);
|
||||||
_buttons[y]._whither = file.readByte(); // This is the position to jump to.
|
_buttons[y]._whither = file.readByte(); // This is the position to jump to.
|
||||||
|
@ -103,10 +103,10 @@ void Help::switchPage(byte which) {
|
||||||
case 254:
|
case 254:
|
||||||
text = Common::String("Esc");
|
text = Common::String("Esc");
|
||||||
break;
|
break;
|
||||||
case 'Ö':
|
case 214: // 'Ö'
|
||||||
text = Common::String(24);
|
text = Common::String(24);
|
||||||
break;
|
break;
|
||||||
case 'Ø':
|
case 216: // 'Ø'
|
||||||
text = Common::String(25);
|
text = Common::String(25);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue