[Scummvm-cvs-logs] SF.net SVN: scummvm: [27521] scummvm/branches/branch-0-10-0/engines/agos/ vga.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Mon Jun 18 11:07:11 CEST 2007
Revision: 27521
http://scummvm.svn.sourceforge.net/scummvm/?rev=27521&view=rev
Author: Kirben
Date: 2007-06-18 02:07:10 -0700 (Mon, 18 Jun 2007)
Log Message:
-----------
Fix bug #1738870 - Elvira1: Glitch after opening a sarcophagus.
Modified Paths:
--------------
scummvm/branches/branch-0-10-0/engines/agos/vga.cpp
Modified: scummvm/branches/branch-0-10-0/engines/agos/vga.cpp
===================================================================
--- scummvm/branches/branch-0-10-0/engines/agos/vga.cpp 2007-06-18 09:07:03 UTC (rev 27520)
+++ scummvm/branches/branch-0-10-0/engines/agos/vga.cpp 2007-06-18 09:07:10 UTC (rev 27521)
@@ -804,16 +804,19 @@
}
void AGOSEngine::vc17_waitEnd() {
+ uint16 id = vcReadNextWord();
+
VgaSleepStruct *vfs = _waitEndTable;
while (vfs->ident)
vfs++;
- vfs->ident = vcReadNextWord();
- vfs->code_ptr = _vcPtr;
- vfs->sprite_id = _vgaCurSpriteId;
- vfs->cur_vga_file = _vgaCurZoneNum;
-
- _vcPtr = (byte *)&_vc_get_out_of_code;
+ if (isSpriteLoaded(id, id / 100)) {
+ vfs->ident = id;
+ vfs->code_ptr = _vcPtr;
+ vfs->sprite_id = _vgaCurSpriteId;
+ vfs->cur_vga_file = _vgaCurZoneNum;
+ _vcPtr = (byte *)&_vc_get_out_of_code;
+ }
}
void AGOSEngine::vc18_jump() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list