The name isn't stored in saved games for PP

svn-id: r24088
This commit is contained in:
Travis Howell 2006-10-02 23:01:32 +00:00
parent 756ede94aa
commit 1ee0c4f1ce
2 changed files with 6 additions and 6 deletions

View File

@ -2550,10 +2550,10 @@ void AGOSEngine::o4_saveUserGame() {
_clockStopped = 0;
if (getGameId() == GID_DIMP) {
saveGame(1, (const char *)"dimp");
saveGame(1, NULL);
} else if (!getBitFlag(110)) {
// Swampy adventures
saveGame(1, (const char *)"swampy");
saveGame(1, NULL);
}
//saveHiScores()

View File

@ -596,10 +596,10 @@ bool AGOSEngine::saveGame(uint slot, const char *caption) {
return false;
}
if (getGameType() == GType_FF || getGameType() == GType_PP) {
if (getGameType() == GType_FF) {
f->write(caption, 100);
curTime = time(NULL);
} else {
} else if (getGameType() != GType_PP) {
f->write(caption, 18);
}
@ -719,9 +719,9 @@ bool AGOSEngine::loadGame(uint slot) {
return false;
}
if (getGameType() == GType_FF || getGameType() == GType_PP) {
if (getGameType() == GType_FF) {
f->read(ident, 100);
} else {
} else if (getGameType() != GType_PP) {
f->read(ident, 18);
}