From 52700d59fdba83f549a23569c058e1cccac7f510 Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Tue, 29 Jul 2008 12:56:32 +0000 Subject: 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 --- engines/cine/various.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); } -- cgit v1.2.3