aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKari Salminen2008-07-29 12:56:32 +0000
committerKari Salminen2008-07-29 12:56:32 +0000
commit52700d59fdba83f549a23569c058e1cccac7f510 (patch)
tree14f3d7f448db80dd0d79734990ec6dc40c9a70f1
parentf31cf5d94cb949d02a6ef42dcbadd48cc807ce40 (diff)
downloadscummvm-rg350-52700d59fdba83f549a23569c058e1cccac7f510.tar.gz
scummvm-rg350-52700d59fdba83f549a23569c058e1cccac7f510.tar.bz2
scummvm-rg350-52700d59fdba83f549a23569c058e1cccac7f510.zip
Added a debug message to loadTempSaveOS's to check whether we loaded the whole savefile. Made objectStruct's clearing also clear x and y member variables in resetEngine.
svn-id: r33407
-rw-r--r--engines/cine/various.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp
index 9a9393cc92..9ff0d54f67 100644
--- a/engines/cine/various.cpp
+++ b/engines/cine/various.cpp
@@ -572,6 +572,8 @@ void CineEngine::resetEngine() {
messageTable.clear();
for (int i = 0; i < NUM_MAX_OBJECT; i++) {
+ objectTable[i].x = 0;
+ objectTable[i].y = 0;
objectTable[i].part = 0;
objectTable[i].name[0] = 0;
objectTable[i].frame = 0;
@@ -860,6 +862,12 @@ bool CineEngine::loadTempSaveOS(Common::SeekableReadStream &in) {
// TODO: Add current music loading and playing here
// TODO: Palette handling?
+ if (in.pos() == in.size()) {
+ debug(3, "loadTempSaveOS: Loaded the whole savefile.");
+ } else {
+ warning("loadTempSaveOS: Loaded the savefile but didn't exhaust it completely. Something was left over");
+ }
+
return !in.ioFailed();
}