mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Draw crosshair at 1:1 scale when crosshairscale
is 0, just like GZDoom.
* Fixes #767.
This commit is contained in:
parent
7d82ae28f4
commit
33975a083f
1 changed files with 1 additions and 1 deletions
|
@ -1401,7 +1401,7 @@ void DrawCrosshair(int deftile, int health, double xdelta, double ydelta, double
|
|||
auto tile = tileGetTexture(deftile);
|
||||
if (tile)
|
||||
{
|
||||
double crosshair_scale = crosshairscale * scale;
|
||||
double crosshair_scale = crosshairscale > 0.0f ? crosshairscale * scale : 1.;
|
||||
DrawTexture(twod, tile, 160 + xdelta, 100 + ydelta, DTA_Color, color, DTA_Rotate, angle.Degrees(),
|
||||
DTA_FullscreenScale, FSMode_Fit320x200, DTA_ScaleX, crosshair_scale, DTA_ScaleY, crosshair_scale, DTA_CenterOffsetRel, true,
|
||||
DTA_ViewportX, viewport3d.Left(), DTA_ViewportY, viewport3d.Top(), DTA_ViewportWidth, viewport3d.Width(), DTA_ViewportHeight, viewport3d.Height(), TAG_DONE);
|
||||
|
|
Loading…
Reference in a new issue