diff options
Diffstat (limited to 'code/client/cl_cgame.c')
-rw-r--r-- | code/client/cl_cgame.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c index 615884f..ef15798 100644 --- a/code/client/cl_cgame.c +++ b/code/client/cl_cgame.c @@ -400,11 +400,9 @@ void CL_ShutdownCGame( void ) { } static int FloatAsInt( float f ) { - int temp; - - *(float *)&temp = f; - - return temp; + floatint_t fi; + fi.f = f; + return fi.i; } /* |