mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 21:31:32 +00:00
Show non-default lap count on replay screen too
This commit is contained in:
parent
4b9562f72f
commit
b3ef039d87
3 changed files with 6 additions and 7 deletions
|
@ -6679,16 +6679,11 @@ void G_LoadDemoInfo(menudemo_t *pdemo)
|
|||
if (netid == cv_kartspeed.netid)
|
||||
{
|
||||
for (cvarcount = 0; kartspeed_cons_t[cvarcount].strvalue; cvarcount++)
|
||||
{
|
||||
if (!stricmp(kartspeed_cons_t[cvarcount].strvalue, svalue))
|
||||
{
|
||||
pdemo->kartspeed = kartspeed_cons_t[cvarcount].value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
else if (netid == cv_basenumlaps.netid && pdemo->gametype == GT_RACE)
|
||||
pdemo->numlaps = atoi(svalue);
|
||||
}
|
||||
|
||||
if (pdemoflags & DF_ENCORE)
|
||||
|
|
|
@ -79,6 +79,7 @@ typedef struct menudemo_s {
|
|||
UINT8 addonstatus; // What do we need to do addon-wise to play this demo?
|
||||
UINT8 gametype;
|
||||
UINT8 kartspeed; // Add OR DF_ENCORE for encore mode, idk
|
||||
UINT8 numlaps;
|
||||
|
||||
char winnername[17];
|
||||
UINT8 winnerskin, winnercolor;
|
||||
|
|
|
@ -5300,6 +5300,9 @@ static void DrawReplayHutReplayInfo(void)
|
|||
else
|
||||
V_DrawString(x, y, V_ALLOWLOWERCASE|V_TRANSLUCENT, "Level is not loaded.");
|
||||
|
||||
if (demolist[dir_on[menudepthleft]].numlaps)
|
||||
V_DrawThinString(x, y+9, V_ALLOWLOWERCASE, va("(%d laps)", demolist[dir_on[menudepthleft]].numlaps));
|
||||
|
||||
V_DrawString(x, y+20, V_ALLOWLOWERCASE, demolist[dir_on[menudepthleft]].gametype == GT_RACE ?
|
||||
va("Race (%s speed)", kartspeed_cons_t[demolist[dir_on[menudepthleft]].kartspeed & ~DF_ENCORE].strvalue) :
|
||||
"Battle Mode");
|
||||
|
|
Loading…
Reference in a new issue