mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Simplify fix
pickedchar doesn't need to be set in these two places, since G_DeferedInitNew already does that.
This commit is contained in:
parent
4e446d22d6
commit
e9637322f9
2 changed files with 1 additions and 8 deletions
|
@ -1492,10 +1492,7 @@ void G_BeginRecording(void)
|
|||
demo_p += 16;
|
||||
|
||||
// Skin
|
||||
const char *skinname = cv_skin.string;
|
||||
if (pickedchar >= 0 && pickedchar < numskins)
|
||||
skinname = skins[pickedchar].name;
|
||||
|
||||
const char *skinname = skins[players[0].skin].name;
|
||||
for (i = 0; i < 16 && skinname[i]; i++)
|
||||
name[i] = skinname[i];
|
||||
for (; i < 16; i++)
|
||||
|
|
|
@ -10372,8 +10372,6 @@ static void M_ChooseNightsAttack(INT32 choice)
|
|||
sprintf(gpath,"replay"PATHSEP"%s"PATHSEP"%s", timeattackfolder, G_BuildMapName(cv_nextmap.value));
|
||||
snprintf(nameofdemo, sizeof nameofdemo, "%s-%s-last", gpath, skins[cv_chooseskin.value-1].name);
|
||||
|
||||
pickedchar = cv_chooseskin.value-1;
|
||||
|
||||
if (!cv_autorecord.value)
|
||||
remove(va("%s"PATHSEP"%s.lmp", srb2home, nameofdemo));
|
||||
else
|
||||
|
@ -10403,8 +10401,6 @@ static void M_ChooseTimeAttack(INT32 choice)
|
|||
sprintf(gpath,"replay"PATHSEP"%s"PATHSEP"%s", timeattackfolder, G_BuildMapName(cv_nextmap.value));
|
||||
snprintf(nameofdemo, sizeof nameofdemo, "%s-%s-last", gpath, skins[cv_chooseskin.value-1].name);
|
||||
|
||||
pickedchar = cv_chooseskin.value-1;
|
||||
|
||||
if (!cv_autorecord.value)
|
||||
remove(va("%s"PATHSEP"%s.lmp", srb2home, nameofdemo));
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue