summaryrefslogtreecommitdiff
path: root/src/qcommon/q_shared.h
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 11:55:35 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:31 +0000
commita30e294034cfda3ce2a6b77158e7017d6a0d804f (patch)
tree25112c57c1b6635bddc0cd3dbe3ac1a04918394f /src/qcommon/q_shared.h
parent231f5f84c6ba1d9c27f9594ba6531a30c9681f44 (diff)
* Some SnapVector nonsense
* A (perhaps) finally fixed Item_Text_Wrap
Diffstat (limited to 'src/qcommon/q_shared.h')
-rw-r--r--src/qcommon/q_shared.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h
index b325b49a..82b4f87e 100644
--- a/src/qcommon/q_shared.h
+++ b/src/qcommon/q_shared.h
@@ -468,8 +468,8 @@ 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 SnapVector(v) {(v)[0]=Floor((v)[0]);(v)[1]=Floor((v)[1]);(v)[2]=Floor((v)[2]);}
+#define Floor(f) ((f) >= 0.f ? (int)(f) : -(int)(-(f)))
+#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
vec_t _DotProduct( const vec3_t v1, const vec3_t v2 );