diff options
author | Travis Howell | 2006-10-14 06:12:12 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-14 06:12:12 +0000 |
commit | 9fb68c989f971cbed7a51432e3192bd418fefdf6 (patch) | |
tree | 6651f3b48eccc7ac6be4f1f49533c30742cf6731 | |
parent | 996a1adf803d23636f6e8955e9fdaa358e460157 (diff) | |
download | scummvm-rg350-9fb68c989f971cbed7a51432e3192bd418fefdf6.tar.gz scummvm-rg350-9fb68c989f971cbed7a51432e3192bd418fefdf6.tar.bz2 scummvm-rg350-9fb68c989f971cbed7a51432e3192bd418fefdf6.zip |
Fix glitch in introduction of WW
svn-id: r24305
-rw-r--r-- | engines/agos/vga.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/agos/vga.cpp b/engines/agos/vga.cpp index 162bcb1011..463fb08c4d 100644 --- a/engines/agos/vga.cpp +++ b/engines/agos/vga.cpp @@ -2614,15 +2614,16 @@ void AGOSEngine::vc60_stopAnimation() { 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 @@ void AGOSEngine::vc61() { 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 @@ void AGOSEngine::vc61() { src = _curVgaFile2 + 9984 * 16 + 15344; } - dst = getFrontBuf() + 50296; + dst = dstPtr + 50296; for (h = 0; h < 17; h++) { memcpy(dst, src, 208); src += 208; |