draw par times on intermission screen before endpic (#749)

This commit is contained in:
Fabian Greffrath 2022-09-26 15:16:24 +02:00 committed by GitHub
parent 26f676e6d3
commit 8d148e9457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1271,12 +1271,20 @@ static void G_DoCompleted(void)
if (gamemapinfo)
{
const char *next = NULL;
boolean intermission = false;
if (U_CheckField(gamemapinfo->endpic) && gamemapinfo->nointermission)
if (U_CheckField(gamemapinfo->endpic))
{
if (gamemapinfo->nointermission)
{
gameaction = ga_victory;
return;
}
else
{
intermission = true;
}
}
if (secretexit && gamemapinfo->nextsecret[0])
next = gamemapinfo->nextsecret;
@ -1294,6 +1302,10 @@ static void G_DoCompleted(void)
for (i = 0; i < MAXPLAYERS; i++)
players[i].didsecret = false;
}
}
if (next || intermission)
{
wminfo.didsecret = players[consoleplayer].didsecret;
wminfo.partime = gamemapinfo->partime * TICRATE;
um_pars = true;