mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-01 04:33:02 +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)
|
||||
{
|
||||
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))
|
||||
remove(rguest);
|
||||
|
||||
if (choice == 'y' || choice == KEY_ENTER)
|
||||
{
|
||||
if (FIL_FileExists(rguest))
|
||||
remove(rguest);
|
||||
}
|
||||
M_SetupNextMenu(currentMenu->prevMenu->prevMenu);
|
||||
Nextmap_OnChange();
|
||||
M_StartMessage(M_GetText("Guest replay data erased.\n"),NULL,MM_NOTHING);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue