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
This commit is contained in:
Kari Salminen 2008-07-29 12:56:32 +00:00
parent f31cf5d94c
commit 52700d59fd

View File

@ -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();
}