mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
more parentheses around vector macro arguments.
This commit is contained in:
parent
9c78f028f6
commit
d5e9d1270c
1 changed files with 2 additions and 2 deletions
|
@ -62,12 +62,12 @@ static inline int IS_NAN (float x) {
|
|||
#define VectorNormalizeFast(_v)\
|
||||
{\
|
||||
union { float f; int i; } _y, _number;\
|
||||
_number.f = DotProduct(_v, _v);\
|
||||
_number.f = DotProduct((_v), (_v));\
|
||||
if (_number.f != 0.0)\
|
||||
{\
|
||||
_y.i = 0x5f3759df - (_number.i >> 1);\
|
||||
_y.f = _y.f * (1.5f - (_number.f * 0.5f * _y.f * _y.f));\
|
||||
VectorScale(_v, _y.f, _v);\
|
||||
VectorScale((_v), _y.f, (_v));\
|
||||
}\
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue