mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 07:57:52 +00:00
- Use "Map time color" for single maps, whether in a hub or not. Only use "Hub time color" for hub times.
SVN r4049 (trunk)
This commit is contained in:
parent
931357358d
commit
83320626e5
1 changed files with 8 additions and 8 deletions
|
@ -899,18 +899,18 @@ void DrawHUD()
|
||||||
|
|
||||||
if (am_showtime)
|
if (am_showtime)
|
||||||
{
|
{
|
||||||
seconds = level.time /TICRATE;
|
|
||||||
mysnprintf(printstr, countof(printstr), "%02i:%02i:%02i", seconds/3600, (seconds%3600)/60, seconds%60);
|
|
||||||
DrawHudText(SmallFont, hudcolor_time, printstr, hudwidth-length, bottom, FRACUNIT);
|
|
||||||
bottom -= fonth;
|
|
||||||
|
|
||||||
// Single level time for hubs
|
|
||||||
if (level.clusterflags&CLUSTER_HUB)
|
if (level.clusterflags&CLUSTER_HUB)
|
||||||
{
|
{
|
||||||
seconds= level.maptime /TICRATE;
|
seconds = level.time /TICRATE;
|
||||||
mysnprintf(printstr, countof(printstr), "%02i:%02i:%02i", seconds/3600, (seconds%3600)/60, seconds%60);
|
mysnprintf(printstr, countof(printstr), "%02i:%02i:%02i", seconds/3600, (seconds%3600)/60, seconds%60);
|
||||||
DrawHudText(SmallFont, hudcolor_ltim, printstr, hudwidth-length, bottom, FRACUNIT);
|
DrawHudText(SmallFont, hudcolor_time, printstr, hudwidth-length, bottom, FRACUNIT);
|
||||||
|
bottom -= fonth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Single level time for hubs
|
||||||
|
seconds= level.maptime /TICRATE;
|
||||||
|
mysnprintf(printstr, countof(printstr), "%02i:%02i:%02i", seconds/3600, (seconds%3600)/60, seconds%60);
|
||||||
|
DrawHudText(SmallFont, hudcolor_ltim, printstr, hudwidth-length, bottom, FRACUNIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
ST_FormatMapName(mapname);
|
ST_FormatMapName(mapname);
|
||||||
|
|
Loading…
Reference in a new issue