File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -281,8 +281,16 @@ void Com_Free_Aligned( void *ptr );
281
281
#define M_SQRT2 1 .414213562f
282
282
#endif
283
283
284
- #ifndef M_ROOT3
285
- #define M_ROOT3 1 .732050808f
284
+ #ifndef M_RSQRT2
285
+ #define M_RSQRT2 0 .707106781f
286
+ #endif
287
+
288
+ #ifndef M_SQRT3
289
+ #define M_SQRT3 1 .732050808f
290
+ #endif
291
+
292
+ #ifndef M_RSQRT3
293
+ #define M_RSQRT3 0 .577350269f
286
294
#endif
287
295
288
296
#ifndef LINE_DISTANCE_EPSILON
Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ static void AutospriteDeform( uint32_t numVertexes )
495
495
VectorCopy ( backEnd.viewParms .orientation .axis [ 2 ], upDir );
496
496
}
497
497
498
- float scale = 1.0 / M_SQRT2 ;
498
+ float scale = M_RSQRT2 ;
499
499
500
500
if ( backEnd.currentEntity ->e .nonNormalizedAxes )
501
501
{
You can’t perform that action at this time.
0 commit comments