mirror of
https://github.com/libretro/libretro-prboom.git
synced 2024-11-30 11:40:23 +00:00
Stop overwriting existing Savegame name.
This commit is contained in:
parent
5cfe146def
commit
dc26c3c7ab
15
src/m_menu.c
15
src/m_menu.c
@ -888,12 +888,15 @@ void M_SaveSelect(int choice)
|
||||
|
||||
saveSlot = choice;
|
||||
strcpy(saveOldString,savegamestrings[choice]);
|
||||
savegamestrings[choice][0] = 'S';
|
||||
savegamestrings[choice][1] = 'A';
|
||||
savegamestrings[choice][2] = 'V';
|
||||
savegamestrings[choice][3] = 'E';
|
||||
savegamestrings[choice][4] = 0;
|
||||
saveCharIndex = strlen(savegamestrings[choice]);
|
||||
if (!strcmp(saveOldString, s_EMPTYSTRING))
|
||||
{
|
||||
savegamestrings[choice][0] = 'S';
|
||||
savegamestrings[choice][1] = 'A';
|
||||
savegamestrings[choice][2] = 'V';
|
||||
savegamestrings[choice][3] = 'E';
|
||||
savegamestrings[choice][4] = 0;
|
||||
}
|
||||
saveCharIndex = strlen(savegamestrings[choice]);
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user