readLine_OLD -> readLine_NEW
svn-id: r35213
This commit is contained in:
parent
318f716737
commit
e7050a0c65
1 changed files with 9 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue