umapinfo: fix not possible to set 'partime'

This commit is contained in:
Roman Fomin 2021-06-23 18:43:40 +07:00
parent 97f2190ac7
commit cef71bb2a6

View File

@ -1165,6 +1165,11 @@ static void G_DoCompleted(void)
wminfo.next = gamemap; // go to next level
}
if ( gamemode == commercial )
wminfo.partime = TICRATE*cpars[gamemap-1];
else
wminfo.partime = TICRATE*pars[gameepisode][gamemap];
frommapinfo:
wminfo.nextmapinfo = G_LookupMapinfo(wminfo.nextep+1, wminfo.next+1);
@ -1174,11 +1179,6 @@ frommapinfo:
wminfo.maxsecret = totalsecret;
wminfo.maxfrags = 0;
if ( gamemode == commercial )
wminfo.partime = TICRATE*cpars[gamemap-1];
else
wminfo.partime = TICRATE*pars[gameepisode][gamemap];
wminfo.pnum = consoleplayer;
for (i=0 ; i<MAXPLAYERS ; i++)