aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoruruk2014-07-29 16:13:29 +0200
committeruruk2014-07-29 16:13:29 +0200
commitb33653000da25846bebe7a76c26337d49743884d (patch)
treeba3c6d6aa0063eb4c747878357382c16d00837e0 /engines
parente51888d9cef36d8d9a329abbbd9198aaa555e7e4 (diff)
downloadscummvm-rg350-b33653000da25846bebe7a76c26337d49743884d.tar.gz
scummvm-rg350-b33653000da25846bebe7a76c26337d49743884d.tar.bz2
scummvm-rg350-b33653000da25846bebe7a76c26337d49743884d.zip
CGE2: Fix saving of moving heroes.
Diffstat (limited to 'engines')
-rw-r--r--engines/cge2/saveload.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/cge2/saveload.cpp b/engines/cge2/saveload.cpp
index c505358973..652dbea1ec 100644
--- a/engines/cge2/saveload.cpp
+++ b/engines/cge2/saveload.cpp
@@ -230,6 +230,11 @@ void CGE2Engine::writeSavegameHeader(Common::OutSaveFile *out, SavegameHeader &h
uint8 thumbPalette[256 * 3];
g_system->getPaletteManager()->grabPalette(thumbPalette, 0, 256);
+ // Stop the heroes from moving and redraw them before taking the picture.
+ for (int i = 0; i < 2; i++)
+ _heroTab[i]->_ptr->park();
+ _vga->show();
+
// Create a thumbnail and save it
Graphics::Surface *thumb = new Graphics::Surface();
Graphics::Surface *s = _vga->_page[0];