mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +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;
|
||||
UINT8 numstaff;
|
||||
static boolean use_netreplay = false;
|
||||
const char *lumpname;
|
||||
staffbrief_t *brief;
|
||||
|
||||
if ((use_netreplay = !use_netreplay))
|
||||
{
|
||||
|
|
@ -1915,10 +1917,12 @@ void F_TitleScreenTicker(boolean run)
|
|||
return;
|
||||
}
|
||||
|
||||
numstaff = M_RandomKey(mapheaderinfo[mapnum]->ghostCount)+1;
|
||||
numstaff = M_RandomKey(mapheaderinfo[mapnum]->ghostCount);
|
||||
|
||||
// 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:
|
||||
demo.title = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue