mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 04:21:23 +00:00
Merge branch 'pickedchar-fix' into 'next'
Fix #1126 and #1127 Closes #1127 and #1126 See merge request STJr/SRB2!2189
This commit is contained in:
commit
9b60fd824a
2 changed files with 6 additions and 4 deletions
|
@ -1614,6 +1614,9 @@ void D_SRB2Main(void)
|
||||||
if (D_CheckNetGame())
|
if (D_CheckNetGame())
|
||||||
autostart = true;
|
autostart = true;
|
||||||
|
|
||||||
|
if (!dedicated)
|
||||||
|
pickedchar = R_SkinAvailable(cv_defaultskin.string);
|
||||||
|
|
||||||
// check for a driver that wants intermission stats
|
// check for a driver that wants intermission stats
|
||||||
// start the apropriate game based on parms
|
// start the apropriate game based on parms
|
||||||
if (M_CheckParm("-metal"))
|
if (M_CheckParm("-metal"))
|
||||||
|
@ -1627,8 +1630,6 @@ void D_SRB2Main(void)
|
||||||
autostart = true;
|
autostart = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
pickedchar = R_SkinAvailable(cv_defaultskin.string);
|
|
||||||
|
|
||||||
// user settings come before "+" parameters.
|
// user settings come before "+" parameters.
|
||||||
if (dedicated)
|
if (dedicated)
|
||||||
COM_ImmedExecute(va("exec \"%s"PATHSEP"adedserv.cfg\"\n", srb2home));
|
COM_ImmedExecute(va("exec \"%s"PATHSEP"adedserv.cfg\"\n", srb2home));
|
||||||
|
|
|
@ -1492,8 +1492,9 @@ void G_BeginRecording(void)
|
||||||
demo_p += 16;
|
demo_p += 16;
|
||||||
|
|
||||||
// Skin
|
// Skin
|
||||||
for (i = 0; i < 16 && cv_skin.string[i]; i++)
|
const char *skinname = skins[players[0].skin].name;
|
||||||
name[i] = cv_skin.string[i];
|
for (i = 0; i < 16 && skinname[i]; i++)
|
||||||
|
name[i] = skinname[i];
|
||||||
for (; i < 16; i++)
|
for (; i < 16; i++)
|
||||||
name[i] = '\0';
|
name[i] = '\0';
|
||||||
M_Memcpy(demo_p,name,16);
|
M_Memcpy(demo_p,name,16);
|
||||||
|
|
Loading…
Reference in a new issue