aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/toltecs.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2011-04-11 11:36:53 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:10 +0100
commitacd4d4098f880aa639895f3cfecbac0764999112 (patch)
treebbd16a9dc5c7006d738fa183e0e3b580cff664da /engines/toltecs/toltecs.cpp
parente1fefefff2f2adc26cff5cc8f0c62cb210b31415 (diff)
downloadscummvm-rg350-acd4d4098f880aa639895f3cfecbac0764999112.tar.gz
scummvm-rg350-acd4d4098f880aa639895f3cfecbac0764999112.tar.bz2
scummvm-rg350-acd4d4098f880aa639895f3cfecbac0764999112.zip
TOLTECS: Fix bugs
- Save scene parameters before playing a movie and restore them afterwards (fixes crash) - Fix text disappearing too fast - Implement script function sfGetCameraChanged - Replace nop script functions with stubs which print debug info when called - Some cleanup, remove obsolete TODOs
Diffstat (limited to 'engines/toltecs/toltecs.cpp')
-rw-r--r--engines/toltecs/toltecs.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp
index f1d6040399..3fa7f00905 100644
--- a/engines/toltecs/toltecs.cpp
+++ b/engines/toltecs/toltecs.cpp
@@ -214,7 +214,6 @@ void ToltecsEngine::requestLoadgame(int slotNum) {
}
void ToltecsEngine::loadScene(uint resIndex) {
- // TODO
Resource *sceneResource = _res->load(resIndex);
byte *scene = sceneResource->data;
@@ -431,6 +430,10 @@ void ToltecsEngine::setCamera(int16 x, int16 y) {
}
+bool ToltecsEngine::getCameraChanged() {
+ return _cameraX != _newCameraX || _cameraY != _newCameraY;
+}
+
void ToltecsEngine::scrollCameraUp(int16 delta) {
if (_newCameraY > 0) {
if (_newCameraY < delta)