diff options
Diffstat (limited to 'code/server')
-rw-r--r-- | code/server/sv_game.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/code/server/sv_game.c b/code/server/sv_game.c index adf1f5a..7bfbf03 100644 --- a/code/server/sv_game.c +++ b/code/server/sv_game.c @@ -288,14 +288,9 @@ void SV_GetUsercmd( int clientNum, usercmd_t *cmd ) { //============================================== static int FloatAsInt( float f ) { - union - { - int i; - float f; - } temp; - - temp.f = f; - return temp.i; + floatint_t fi; + fi.f = f; + return fi.i; } /* |