[Scummvm-cvs-logs] SF.net SVN: scummvm: [24305] scummvm/trunk/engines/agos/vga.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Sat Oct 14 08:12:16 CEST 2006
Revision: 24305
http://svn.sourceforge.net/scummvm/?rev=24305&view=rev
Author: kirben
Date: 2006-10-13 23:12:12 -0700 (Fri, 13 Oct 2006)
Log Message:
-----------
Fix glitch in introduction of WW
Modified Paths:
--------------
scummvm/trunk/engines/agos/vga.cpp
Modified: scummvm/trunk/engines/agos/vga.cpp
===================================================================
--- scummvm/trunk/engines/agos/vga.cpp 2006-10-14 05:47:18 UTC (rev 24304)
+++ scummvm/trunk/engines/agos/vga.cpp 2006-10-14 06:12:12 UTC (rev 24305)
@@ -2614,15 +2614,16 @@
void AGOSEngine::vc61() {
uint16 a = vcReadNextWord();
- byte *src, *dst;
+ byte *src, *dst, *dstPtr;
uint h, tmp;
if (a == 6) {
src = _curVgaFile2 + 800;
- dst = getFrontBuf();
- memcpy(dst, src, 64000);
+ dstPtr = getBackBuf();
+ memcpy(dstPtr, src, 64000);
tmp = 4 - 1;
} else {
+ dstPtr = getFrontBuf();
tmp = a - 1;
}
@@ -2634,7 +2635,7 @@
src += 800;
if (a != 5) {
- dst = getFrontBuf() + 7448;
+ dst = dstPtr + 7448;
for (h = 0; h < 177; h++) {
memcpy(dst, src, 144);
src += 144;
@@ -2647,7 +2648,7 @@
src = _curVgaFile2 + 9984 * 16 + 15344;
}
- dst = getFrontBuf() + 50296;
+ dst = dstPtr + 50296;
for (h = 0; h < 17; h++) {
memcpy(dst, src, 208);
src += 208;
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