aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/fights.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/fights.cpp')
-rw-r--r--engines/lure/fights.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lure/fights.cpp b/engines/lure/fights.cpp
index f3eaa6f248..51fce850e6 100644
--- a/engines/lure/fights.cpp
+++ b/engines/lure/fights.cpp
@@ -117,7 +117,7 @@ void FightsManager::fightLoop() {
uint32 timerVal = g_system->getMillis();
// Loop for the duration of the battle
- while (!engine._quit && (playerFight.fwhits != GENERAL_MAGIC_ID)) {
+ while (!engine.quit() && (playerFight.fwhits != GENERAL_MAGIC_ID)) {
checkEvents();
if (g_system->getMillis() > timerVal + GAME_FRAME_DELAY) {
@@ -198,7 +198,7 @@ void FightsManager::checkEvents() {
if (events.type() == Common::EVENT_KEYDOWN) {
switch (events.event().kbd.keycode) {
case Common::KEYCODE_ESCAPE:
- engine._quit = true;
+ engine.quitGame();
return;
case Common::KEYCODE_d: