mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Use staff demo wad/lump index for attraction mode
This commit is contained in:
parent
746da46321
commit
15eecb4e88
1 changed files with 6 additions and 2 deletions
|
|
@ -1890,6 +1890,8 @@ void F_TitleScreenTicker(boolean run)
|
||||||
UINT16 mapnum;
|
UINT16 mapnum;
|
||||||
UINT8 numstaff;
|
UINT8 numstaff;
|
||||||
static boolean use_netreplay = false;
|
static boolean use_netreplay = false;
|
||||||
|
const char *lumpname;
|
||||||
|
staffbrief_t *brief;
|
||||||
|
|
||||||
if ((use_netreplay = !use_netreplay))
|
if ((use_netreplay = !use_netreplay))
|
||||||
{
|
{
|
||||||
|
|
@ -1915,10 +1917,12 @@ void F_TitleScreenTicker(boolean run)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
numstaff = M_RandomKey(mapheaderinfo[mapnum]->ghostCount)+1;
|
numstaff = M_RandomKey(mapheaderinfo[mapnum]->ghostCount);
|
||||||
|
|
||||||
// Setup demo name
|
// Setup demo name
|
||||||
sprintf(dname, "%s/GHOST_%u", mapheaderinfo[mapnum]->lumpname, numstaff);
|
brief = mapheaderinfo[mapnum]->ghostBrief[numstaff];
|
||||||
|
lumpname = W_CheckNameForNumPwad(brief->wad, brief->lump);
|
||||||
|
strcpy_s(dname, sizeof(dname), lumpname);
|
||||||
|
|
||||||
loadreplay:
|
loadreplay:
|
||||||
demo.title = true;
|
demo.title = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue