make sv fp rounding same as cl. doesn't seem to help with obtuse angles, but

it doesn't seem to hurt, either.
This commit is contained in:
Bill Currie 2000-11-13 21:10:18 +00:00
parent 1ed9378fa4
commit bf184744f8
3 changed files with 8 additions and 2 deletions

View file

@ -43,7 +43,7 @@ EXTRA_PROGRAMS= qf-server \
noinst_LIBRARIES= libqfcd.a libqfjs.a libqfsnd.a libqfsys_cl.a libqfsys_sv.a noinst_LIBRARIES= libqfcd.a libqfjs.a libqfsnd.a libqfsys_cl.a libqfsys_sv.a
if ASM_ARCH if ASM_ARCH
math_ASM = math.S math_ASM = math.S sys_x86.S
endif endif
common_SOURCES= buildnum.c checksum.c cmd.c com.c crc.c cvar.c info.c link.c \ common_SOURCES= buildnum.c checksum.c cmd.c com.c crc.c cvar.c info.c link.c \
locs.c mathlib.c mdfour.c model.c model_brush.c msg.c \ locs.c mathlib.c mdfour.c model.c model_brush.c msg.c \
@ -144,7 +144,7 @@ EXTRA_libqfjs_a_SOURCES = joy_linux.c joy_null.c
CLIENT_LIBS= -L. -lqfsys_cl -lqfsnd -lqfcd -lqfjs $(SOUND_LIBS) $(NET_LIBS) $(JOY_LIBS) $(Z_LIBS) CLIENT_LIBS= -L. -lqfsys_cl -lqfsnd -lqfcd -lqfjs $(SOUND_LIBS) $(NET_LIBS) $(JOY_LIBS) $(Z_LIBS)
if ASM_ARCH if ASM_ARCH
client_ASM= snd_mixa.S cl_math.S sys_x86.S client_ASM= snd_mixa.S cl_math.S
endif endif
client_SOURCES= cl_cam.c cl_cmd.c cl_cvar.c cl_demo.c cl_ents.c cl_input.c \ client_SOURCES= cl_cam.c cl_cmd.c cl_cvar.c cl_demo.c cl_ents.c cl_input.c \

View file

@ -148,6 +148,9 @@ void Sys_Init_Cvars (void)
void void
Sys_Init (void) Sys_Init (void)
{ {
#ifdef USE_INTEL_ASM
Sys_SetFPCW();
#endif
} }
/* /*

View file

@ -162,6 +162,9 @@ void Sys_Init (void)
{ {
OSVERSIONINFO vinfo; OSVERSIONINFO vinfo;
#ifdef USE_INTEL_ASM
Sys_SetFPCW();
#endif
// make sure the timer is high precision, otherwise // make sure the timer is high precision, otherwise
// NT gets 18ms resolution // NT gets 18ms resolution
timeBeginPeriod( 1 ); timeBeginPeriod( 1 );