mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 12:32:09 +00:00
Set float rounding mode on non-Windows platforms
Sys_SetFloatEnv in sys_unix.c existed but was not called. It sets the rounding mode to "to nearest" which is the default on Linux. Might be required on other platforms, I don't know.
This commit is contained in:
parent
1ff28f2389
commit
d62dfd87f9
1 changed files with 2 additions and 0 deletions
|
@ -816,6 +816,8 @@ void Sys_PlatformInit( void )
|
|||
signal( SIGIOT, Sys_SigHandler );
|
||||
signal( SIGBUS, Sys_SigHandler );
|
||||
|
||||
Sys_SetFloatEnv();
|
||||
|
||||
stdinIsATTY = isatty( STDIN_FILENO ) &&
|
||||
!( term && ( !strcmp( term, "raw" ) || !strcmp( term, "dumb" ) ) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue