mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Fix guest data being deleted regardless of choice
This commit is contained in:
parent
0cd8a94a5b
commit
b9c7eafdfe
1 changed files with 6 additions and 3 deletions
|
|
@ -10100,9 +10100,12 @@ static void M_ReplayTimeAttack(INT32 choice)
|
||||||
static void M_EraseGuest(INT32 choice)
|
static void M_EraseGuest(INT32 choice)
|
||||||
{
|
{
|
||||||
const char *rguest = va("%s"PATHSEP"replay"PATHSEP"%s"PATHSEP"%s-guest.lmp", srb2home, timeattackfolder, G_BuildMapName(cv_nextmap.value));
|
const char *rguest = va("%s"PATHSEP"replay"PATHSEP"%s"PATHSEP"%s-guest.lmp", srb2home, timeattackfolder, G_BuildMapName(cv_nextmap.value));
|
||||||
(void)choice;
|
|
||||||
if (FIL_FileExists(rguest))
|
if (choice == 'y' || choice == KEY_ENTER)
|
||||||
remove(rguest);
|
{
|
||||||
|
if (FIL_FileExists(rguest))
|
||||||
|
remove(rguest);
|
||||||
|
}
|
||||||
M_SetupNextMenu(currentMenu->prevMenu->prevMenu);
|
M_SetupNextMenu(currentMenu->prevMenu->prevMenu);
|
||||||
Nextmap_OnChange();
|
Nextmap_OnChange();
|
||||||
M_StartMessage(M_GetText("Guest replay data erased.\n"),NULL,MM_NOTHING);
|
M_StartMessage(M_GetText("Guest replay data erased.\n"),NULL,MM_NOTHING);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue