mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 07:23:05 +00:00
TOLTECS: Remove unnecessary calls to quitGame()
Calling quitGame() simply creates a new quit event. There's no need to do that when catching a quit event.
This commit is contained in:
parent
f7e4f4b354
commit
e0b75c59ea
@ -279,7 +279,6 @@ bool MoviePlayer::handleInput() {
|
||||
case Common::EVENT_RBUTTONDOWN:
|
||||
return false;
|
||||
case Common::EVENT_QUIT:
|
||||
_vm->quitGame();
|
||||
return false;
|
||||
default:
|
||||
break;
|
||||
|
@ -354,9 +354,6 @@ void ToltecsEngine::updateInput() {
|
||||
case Common::EVENT_KEYUP:
|
||||
_keyState.reset();
|
||||
break;
|
||||
case Common::EVENT_QUIT:
|
||||
quitGame();
|
||||
break;
|
||||
case Common::EVENT_MOUSEMOVE:
|
||||
_mouseX = event.mouse.x;
|
||||
_mouseY = event.mouse.y;
|
||||
|
Loading…
x
Reference in New Issue
Block a user