mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-29 16:31:43 +00:00
- DrawCrosshair(): Factor in Blood's adjustable horizon which defaults to 90.
* Fixes https://forum.zdoom.org/viewtopic.php?f=340&t=69920.
This commit is contained in:
parent
0461acfc8b
commit
9859571ded
6 changed files with 7 additions and 7 deletions
|
@ -1394,7 +1394,7 @@ void DrawGenericCrosshair(int num, int phealth, double xdelta)
|
|||
}
|
||||
|
||||
|
||||
void DrawCrosshair(int deftile, int health, double xdelta, double scale, PalEntry color)
|
||||
void DrawCrosshair(int deftile, int health, double xdelta, double ydelta, double scale, PalEntry color)
|
||||
{
|
||||
int type = -1;
|
||||
if (automapMode == am_off && cl_crosshair)
|
||||
|
@ -1405,7 +1405,7 @@ void DrawCrosshair(int deftile, int health, double xdelta, double scale, PalEntr
|
|||
if (tile)
|
||||
{
|
||||
double crosshair_scale = cl_crosshairscale * .01 * scale;
|
||||
DrawTexture(twod, tile, 160 + xdelta, 100, DTA_Color, color,
|
||||
DrawTexture(twod, tile, 160 + xdelta, 100 + ydelta, DTA_Color, color,
|
||||
DTA_FullscreenScale, FSMode_Fit320x200, DTA_ScaleX, crosshair_scale, DTA_ScaleY, crosshair_scale, DTA_CenterOffsetRel, true,
|
||||
DTA_ViewportX, windowxy1.x, DTA_ViewportY, windowxy1.y, DTA_ViewportWidth, windowxy2.x - windowxy1.x + 1, DTA_ViewportHeight, windowxy2.y - windowxy1.y + 1, TAG_DONE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue