summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a40ccef)
raw | patch | inline | side by side (parent: a40ccef)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 13 Feb 2023 10:55:33 +0000 (13:55 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 9 Jun 2023 09:10:41 +0000 (12:10 +0300) |
src/game/renders/opengl/r_render.pas | patch | blob | history |
index 369fa882a0aa8f1fe661833e9d1cfdf21c0f5c34..202500d6170fbe92ddd1416d47811ce01e071656 100644 (file)
end;
procedure r_Render_DrawHUDArea (x, y, w, h: Integer; p: TPlayer);
- var s: AnsiString;
+ var s: AnsiString; oldy: Integer;
begin
r_Common_DrawTexture(hudbg, x, y, w, h, TBasePoint.BP_LEFTUP);
if p <> nil then
begin
+ oldy := y;
+ if h < 239 then y := y - 32; (* hack: hide nickname on 640x400 *)
r_Render_DrawHUD(x + w - 196 + 2, y, p);
if p.Spectator then
begin
if p.NoRespawn then
r_Common_DrawText(_lc[I_PLAYER_SPECT1S], x + 4, y + 290, 255, 255, 255, 255, stdfont, TBasePoint.BP_LEFTUP);
end;
+ y := oldy;
end;
if gShowPing and g_Game_IsClient then