diff options
Diffstat (limited to 'src/client/cl_cgame.c')
-rw-r--r-- | src/client/cl_cgame.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/cl_cgame.c b/src/client/cl_cgame.c index 6e436316..9a16d3bf 100644 --- a/src/client/cl_cgame.c +++ b/src/client/cl_cgame.c @@ -397,11 +397,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; } /* |