diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-08-30 15:36:17 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-08-30 15:36:17 +0000 |
commit | 7e071fe0719e42fee4507fd063059e203825c723 (patch) | |
tree | 96013f55530dd624002eb698234e59cc7b5fa57e /code | |
parent | 39fe95169562fdf410cb5b0270454cede79b1070 (diff) | |
download | ioquake3-aero-7e071fe0719e42fee4507fd063059e203825c723.tar.gz ioquake3-aero-7e071fe0719e42fee4507fd063059e203825c723.zip |
make FloatSwap less ugly
git-svn-id: svn://svn.icculus.org/quake3/trunk@31 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/game/q_shared.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/code/game/q_shared.c b/code/game/q_shared.c index 6d35493..928332f 100644 --- a/code/game/q_shared.c +++ b/code/game/q_shared.c @@ -180,11 +180,10 @@ typedef union { } _FloatByteUnion; float FloatSwap (const float *f) { - const _FloatByteUnion *in; _FloatByteUnion out; - in = (_FloatByteUnion *)f; - out.i = LongSwap(in->i); + out.f = *f; + out.i = LongSwap(out.i); return out.f; } |