diff options
author | Benjamin Haisch | 2011-04-11 11:36:53 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-20 22:43:10 +0100 |
commit | acd4d4098f880aa639895f3cfecbac0764999112 (patch) | |
tree | bbd16a9dc5c7006d738fa183e0e3b580cff664da /engines/toltecs/toltecs.cpp | |
parent | e1fefefff2f2adc26cff5cc8f0c62cb210b31415 (diff) | |
download | scummvm-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.cpp | 5 |
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) |