Fix regression in Simon the Sorcerer 1/2, that caused various glitches.

svn-id: r26849
This commit is contained in:
Travis Howell 2007-05-16 06:36:43 +00:00
parent bdb18c60d8
commit a91f7e025c

View File

@ -73,10 +73,7 @@ void AGOSEngine::vcStopAnimation(uint file, uint sprite) {
vte = _vgaTimerList;
while (vte->delay) {
// Skip the animateSprites event in earlier games
if (vte->type == 2) {
vte++;
} else if (vte->sprite_id == _vgaCurSpriteId && (getGameType() == GType_SIMON1 || vte->cur_vga_file == _vgaCurZoneNum)) {
if (vte->sprite_id == _vgaCurSpriteId && (getGameType() == GType_SIMON1 || vte->cur_vga_file == _vgaCurZoneNum)) {
deleteVgaEvent(vte);
break;
}