KINGDOM: Fix warnings

This commit is contained in:
Eugene Sandulenko 2020-06-07 11:34:47 +02:00
parent cd4e446a28
commit 554ed06034
2 changed files with 4 additions and 4 deletions

View File

@ -335,7 +335,7 @@ void Logic::GPL2_301() {
if (_vm->_userInput) if (_vm->_userInput)
warning("Skipped UserInput %d(0x%04X) for _StatPlay %d", _vm->_userInput, _vm->_userInput, _statPlay); warning("Skipped UserInput %d(0x%04X) for _StatPlay %d", _vm->_userInput, _vm->_userInput, _statPlay);
break; break;
} }
} }
void Logic::GPL2_302() { void Logic::GPL2_302() {
@ -375,7 +375,7 @@ void Logic::GPL2_311() {
_vm->playMovie(68); _vm->playMovie(68);
_statPlay = 992; _statPlay = 992;
_vm->_loopFlag = true; _vm->_loopFlag = true;
break; break;
default: default:
if (_vm->_userInput) if (_vm->_userInput)
warning("Skipped UserInput %d(0x%04X) for _StatPlay %d", _vm->_userInput, _vm->_userInput, _statPlay); warning("Skipped UserInput %d(0x%04X) for _StatPlay %d", _vm->_userInput, _vm->_userInput, _statPlay);
@ -570,7 +570,7 @@ void Logic::GPL2_351() {
_vm->playMovie(178); _vm->playMovie(178);
_vm->_userInput = 0x2F1; _vm->_userInput = 0x2F1;
_vm->_loopFlag = true; _vm->_loopFlag = true;
// No break on purpose // fallthrough
case 0x2F1: case 0x2F1:
_vm->_aTimer = 0; _vm->_aTimer = 0;
dsAll(); dsAll();

View File

@ -633,7 +633,7 @@ void Logic::GPL3_581() {
_vm->_tsIconOnly = true; _vm->_tsIconOnly = true;
_currMap = 10; _currMap = 10;
_vm->playSound(30); _vm->playSound(30);
// No break on purpose // fallthrough
case 0x428: case 0x428:
case 0x429: case 0x429:
case 0x42A: case 0x42A: