From cef71bb2a644e49309cc1eb1280bd190a631166b Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Wed, 23 Jun 2021 18:43:40 +0700 Subject: [PATCH] umapinfo: fix not possible to set 'partime' --- Source/g_game.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/g_game.c b/Source/g_game.c index 0ba8aafc..663587df 100644 --- a/Source/g_game.c +++ b/Source/g_game.c @@ -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