Skip to content

Commit

Permalink
Fix hudlib
Browse files Browse the repository at this point in the history
  • Loading branch information
Korshun committed May 7, 2016
1 parent 25a8065 commit c4c556b
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/acshudlib.acs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ function void HudDrawHudMessage(int id, int type, str text, bool isText)
if (RenderSt_Is3DPoint)
{
HudRotate3DPoint();

// Check if point is behind the camera.
if (_RenderSt_RotatedX <= 0)
{
Expand All @@ -579,18 +579,7 @@ function void HudDrawHudMessage(int id, int type, str text, bool isText)

int w = FixedMul(RenderSt_BaseWidth, iScaleX);
int h = FixedMul(RenderSt_BaseHeight, iScaleY);
int excludeStatusBar = RenderSt_ExcludeStatusBar;

if (RenderSt_Is3DPoint)
{
excludeStatusBar = true;
if (RenderSt3D_AutoDistanceScale)
{
w = 640.0;
h = 480.0;
}
}
SetHudSize(itrunc(w), itrunc(h), !excludeStatusBar);
SetHudSize(itrunc(w), itrunc(h), !(RenderSt_Is3DPoint || RenderSt_ExcludeStatusBar));

x = trunc(FixedMul(x, iScaleX));
y = trunc(FixedMul(y, iScaleY));
Expand All @@ -614,6 +603,7 @@ function void HudDrawHudMessage(int id, int type, str text, bool isText)
if (stayTime < 0)
stayTime = 32767.0;

printbold(f:x, s:" ", f:y);
if (RenderSt_ShowToEveryone)
{
HudMessageBold(s:text;
Expand Down

0 comments on commit c4c556b

Please sign in to comment.