mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
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:
parent
f31cf5d94c
commit
52700d59fd
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user