@@ -121,8 +121,6 @@ static byte *am_crosshaircolor2;
121
121
#define CXMTOF (x ) MTOF((x) - m_x)
122
122
#define CYMTOF (y ) (MAPHEIGHT - MTOF((y) - m_y))
123
123
124
- #define AM_CORRECTASPECTRATIO (5 * FRACUNIT / 6)
125
-
126
124
typedef struct
127
125
{
128
126
mpoint_t a ;
@@ -1154,7 +1152,7 @@ static void AM_RotatePoint(mpoint_t *point)
1154
1152
1155
1153
static void AM_CorrectAspectRatio (mpoint_t * point )
1156
1154
{
1157
- point -> y = am_frame .center .y + FixedMul (point -> y - am_frame .center .y , AM_CORRECTASPECTRATIO ) ;
1155
+ point -> y = am_frame .center .y + 5 * (point -> y - am_frame .center .y ) / 6 ;
1158
1156
}
1159
1157
1160
1158
//
@@ -1715,6 +1713,12 @@ static void AM_DrawPlayerArrow(const mline_t *lineguy, const int lineguylines,
1715
1713
AM_Rotate (& x1 , & y1 , angle );
1716
1714
AM_Rotate (& x2 , & y2 , angle );
1717
1715
1716
+ if (am_correctaspectratio )
1717
+ {
1718
+ y1 = 5 * y1 / 6 ;
1719
+ y2 = 5 * y2 / 6 ;
1720
+ }
1721
+
1718
1722
AM_DrawFline (x + x1 , y + y1 , x + x2 , y + y2 , & playercolor , putdot );
1719
1723
}
1720
1724
}
@@ -1733,6 +1737,12 @@ static void AM_DrawThingTriangle(const mline_t *lineguy, const int lineguylines,
1733
1737
AM_Rotate (& x1 , & y1 , angle );
1734
1738
AM_Rotate (& x2 , & y2 , angle );
1735
1739
1740
+ if (am_correctaspectratio )
1741
+ {
1742
+ y1 = 5 * y1 / 6 ;
1743
+ y2 = 5 * y2 / 6 ;
1744
+ }
1745
+
1736
1746
AM_DrawFline (x + x1 , y + y1 , x + x2 , y + y2 , & color , putdot );
1737
1747
}
1738
1748
}
0 commit comments