aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/toltecs.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2008-12-15 08:04:06 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:07 +0100
commit1f4764ad1c6a4ef2d4c2a2697572f692957bbc02 (patch)
tree9a30ff2933e7955c2da56e2ee11dc48d4fa92553 /engines/toltecs/toltecs.cpp
parentec6f0d23a7bb502cd1fa5eef96340189fc64d8b4 (diff)
downloadscummvm-rg350-1f4764ad1c6a4ef2d4c2a2697572f692957bbc02.tar.gz
scummvm-rg350-1f4764ad1c6a4ef2d4c2a2697572f692957bbc02.tar.bz2
scummvm-rg350-1f4764ad1c6a4ef2d4c2a2697572f692957bbc02.zip
TOLTECS: - Implemented RTL
- Fixed return values in savegame/loadgame - Some minor cleanup
Diffstat (limited to 'engines/toltecs/toltecs.cpp')
-rw-r--r--engines/toltecs/toltecs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp
index b9031078f9..c7ec3cac63 100644
--- a/engines/toltecs/toltecs.cpp
+++ b/engines/toltecs/toltecs.cpp
@@ -102,7 +102,6 @@ Common::Error ToltecsEngine::go() {
_isSaveAllowed = true;
- _quitGame = false;
_counter01 = 0;
_counter02 = 0;
_movieSceneFlag = false;
@@ -248,6 +247,7 @@ void ToltecsEngine::updateScreen() {
_system->updateScreen();
updateCamera();
+
}
void ToltecsEngine::updateInput() {
@@ -272,8 +272,7 @@ void ToltecsEngine::updateInput() {
break;
case Common::EVENT_QUIT:
- // FIXME: Find a nicer way to quit
- _system->quit();
+ quitGame();
break;
case Common::EVENT_MOUSEMOVE:
_mouseX = event.mouse.x;
@@ -338,6 +337,7 @@ void ToltecsEngine::setGuiHeight(int16 guiHeight) {
if (guiHeight != _guiHeight) {
_guiHeight = guiHeight;
_cameraHeight = 400 - _guiHeight;
+ _screen->_guiRefresh = true;
debug(0, "ToltecsEngine::setGuiHeight() _guiHeight = %d; _cameraHeight = %d", _guiHeight, _cameraHeight);
// TODO: clearScreen();
}