From 75542e0f9595d4ad1da109e6cd262e728c379293 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 19 Apr 2006 11:01:03 +0000 Subject: [PATCH] Add minor code differences in FF, might help corrupt graphics svn-id: r22033 --- engines/simon/simon.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp index c9a303f9166..1aa1735a2b1 100644 --- a/engines/simon/simon.cpp +++ b/engines/simon/simon.cpp @@ -2227,8 +2227,10 @@ void SimonEngine::checkNoOverWrite(byte *end) { void SimonEngine::checkRunningAnims(byte *end) { VgaSprite *vsp; - if (_lockWord & 0x20) + if ((getGameType() == GType_SIMON1 || getGameType() == GType_SIMON2) && + (_lockWord & 0x20)) { return; + } for (vsp = _vgaSprites; vsp->id; vsp++) { checkAnims(vsp->zoneNum, end); @@ -2276,8 +2278,10 @@ void SimonEngine::set_video_mode_internal(uint mode, uint vga_res_id) { _windowNum = mode; _lockWord |= 0x20; - if (getGameType() == GType_FF) + if (getGameType() == GType_FF) { + vc27_resetSprite(); vga_res_id &= 0xFFFF; + } if (vga_res_id == 0) { if (getGameType() == GType_SIMON1) {