aboutsummaryrefslogtreecommitdiff
path: root/engines/simon/simon.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-04-09 06:06:10 +0000
committerTravis Howell2006-04-09 06:06:10 +0000
commit55cc897cff4d6bbd62acf54a91efbd8c588ae6e0 (patch)
tree800c3eafeddc487ebf367e6fff26f49fe93312ab /engines/simon/simon.cpp
parent202406e31be0d491ed6c44ecf024c8db012d09d9 (diff)
downloadscummvm-rg350-55cc897cff4d6bbd62acf54a91efbd8c588ae6e0.tar.gz
scummvm-rg350-55cc897cff4d6bbd62acf54a91efbd8c588ae6e0.tar.bz2
scummvm-rg350-55cc897cff4d6bbd62acf54a91efbd8c588ae6e0.zip
Add time code for FF and minor cleanup
svn-id: r21714
Diffstat (limited to 'engines/simon/simon.cpp')
-rw-r--r--engines/simon/simon.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp
index 4a9eaeb85d..3c275a8fb0 100644
--- a/engines/simon/simon.cpp
+++ b/engines/simon/simon.cpp
@@ -304,6 +304,8 @@ SimonEngine::SimonEngine(OSystem *syst)
_printCharPixelCount = 0;
_numLettersToPrint = 0;
+ _clockStopped = 0;
+ _gameStoppedClock = 0;
_lastTime = 0;
_firstTimeStruct = 0;
@@ -2663,6 +2665,11 @@ void SimonEngine::timer_vga_sprites() {
scrollEvent();
}
+ if (getGameType() == GType_FF && getBitFlag(84)) {
+ // TODO
+ warning("Animation by Y value not supported");
+ }
+
vsp = _vgaSprites;
while (vsp->id != 0) {
@@ -2904,7 +2911,7 @@ void SimonEngine::closeWindow(uint a) {
if (_windowArray[a] == NULL)
return;
removeIconArray(a);
- video_copy_if_flag_0x8_c(_windowArray[a]);
+ resetWindow(_windowArray[a]);
_windowArray[a] = NULL;
if (_curWindow == a) {
_textWindow = NULL;
@@ -3265,7 +3272,7 @@ void SimonEngine::video_toggle_colors(HitArea * ha, byte a, byte b, byte c, byte
_lockWord &= ~0x8000;
}
-void SimonEngine::video_copy_if_flag_0x8_c(WindowBlock *window) {
+void SimonEngine::resetWindow(WindowBlock *window) {
if (window->flags & 8)
restoreWindow(window);
window->mode = 0;