Merge remote-tracking branch 'remotes/james/netreplays-scoreshud' into new_netreplays

This commit is contained in:
fickleheart 2019-02-06 19:48:57 -06:00
commit f10237ea3d
1 changed files with 10 additions and 6 deletions

View File

@ -2109,8 +2109,11 @@ UINT32 hu_demolap;
static void HU_DrawDemoInfo(void)
{
V_DrawCenteredString((BASEVIDWIDTH/2), BASEVIDHEIGHT-40, 0, M_GetText("Replay:"));
V_DrawCenteredString((BASEVIDWIDTH/2), BASEVIDHEIGHT-32, V_ALLOWLOWERCASE, player_names[0]);
if (!multiplayer)/* netreplay */
{
V_DrawCenteredString((BASEVIDWIDTH/2), BASEVIDHEIGHT-40, 0, M_GetText("Replay:"));
V_DrawCenteredString((BASEVIDWIDTH/2), BASEVIDHEIGHT-32, V_ALLOWLOWERCASE, player_names[0]);
}
if (modeattacking)
{
V_DrawRightAlignedString((BASEVIDWIDTH/2)-4, BASEVIDHEIGHT-24, V_YELLOWMAP|V_MONOSPACE, "BEST TIME:");
@ -2227,10 +2230,7 @@ void HU_Drawer(void)
if (cechotimer)
HU_DrawCEcho();
if (demoplayback && hu_showscores)
HU_DrawDemoInfo();
if (!Playing()
if (!( Playing() || demoplayback )
|| gamestate == GS_INTERMISSION || gamestate == GS_CUTSCENE
|| gamestate == GS_CREDITS || gamestate == GS_EVALUATION
|| gamestate == GS_GAMEEND
@ -2250,6 +2250,10 @@ void HU_Drawer(void)
LUAh_ScoresHUD();
#endif
}
if (demoplayback)
{
HU_DrawDemoInfo();
}
}
if (gamestate != GS_LEVEL)