diff options
author | Roman Tetelman <kevlarman@gmail.com> | 2009-10-03 11:56:34 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:32 +0000 |
commit | ef88523ceb802c22fea0f5ac3744702429dfe650 (patch) | |
tree | 8ce1e34a660fcb063dcf0034628e56c90e9c369b /src/qcommon/q_shared.h | |
parent | 034038c8d454d03d78d3e828bd2206b0eb054ecd (diff) |
* marauder has a timeout after jumping before being able to walljump again
* make SnapVector definition more msvc friendly
Diffstat (limited to 'src/qcommon/q_shared.h')
-rw-r--r-- | src/qcommon/q_shared.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h index 82b4f87e..84408371 100644 --- a/src/qcommon/q_shared.h +++ b/src/qcommon/q_shared.h @@ -468,7 +468,7 @@ typedef struct { // Snaps the vector to the floor value always, ignoring any weirdness from // snapping negative versus positive numbers -#define Floor(f) ((f) >= 0.f ? (int)(f) : -(int)(-(f))) +#define Floor(fl) ((fl) >= 0.0f ? (int)(fl) : -(int)(-(fl))) #define SnapVector(v) ((v)[0]=Floor((v)[0]),(v)[1]=Floor((v)[1]),(v)[2]=Floor((v)[2])) // just in case you do't want to use the macros |