readLine_OLD -> readLine_NEW

svn-id: r35213
This commit is contained in:
Filippos Karapetis 2008-12-03 08:59:12 +00:00
parent 318f716737
commit e7050a0c65

View file

@ -49,8 +49,15 @@ bool DrasculaEngine::saveLoadScreen() {
error("Can't open %s file", fileEpa);
}
}
for (n = 0; n < NUM_SAVES; n++)
sav->readLine_OLD(names[n], 23);
int l;
for (n = 0; n < NUM_SAVES; n++) {
sav->readLine_NEW(names[n], 23);
// readLine_NEW also returns the newline character (\n),
// so we need to clear it here
l = strlen(names[n]);
if (l > 0 && names[n][l - 1] == '\n')
names[n][l - 1] = '\0';
}
delete sav;
loadPic("savescr.alg", bgSurface, HALF_PAL);