SetSightDistance matching
This commit is contained in:
parent
ef2b051e47
commit
33bbf42113
|
|
@ -72,6 +72,8 @@ target_sources(dethrace_obj PRIVATE
|
|||
common/loading.c
|
||||
common/piping.c
|
||||
common/powerup.c
|
||||
common/netgame.c
|
||||
common/world.c
|
||||
|
||||
common/brucetrk.c
|
||||
common/brucetrk.h
|
||||
|
|
@ -127,8 +129,7 @@ target_sources(dethrace_obj PRIVATE
|
|||
common/mainloop.h
|
||||
common/mainmenu.c
|
||||
common/mainmenu.h
|
||||
common/netgame.c
|
||||
common/netgame.h
|
||||
|
||||
common/network.c
|
||||
common/network.h
|
||||
common/newgame.c
|
||||
|
|
@ -158,8 +159,7 @@ target_sources(dethrace_obj PRIVATE
|
|||
common/trig.h
|
||||
common/utility.c
|
||||
common/utility.h
|
||||
common/world.c
|
||||
common/world.h
|
||||
|
||||
constants.h
|
||||
dr_types.h
|
||||
pd/net.h
|
||||
|
|
@ -194,8 +194,7 @@ if(MSVC_42_FOR_RECCMP)
|
|||
set_target_properties(dethrace PROPERTIES OUTPUT_NAME "CARM95")
|
||||
target_link_options(dethrace PRIVATE /INCREMENTAL:NO /subsystem:windows /ENTRY:mainCRTStartup)
|
||||
|
||||
set_source_files_properties(common/powerup.c PROPERTIES COMPILE_FLAGS "/FAs")
|
||||
set_source_files_properties(common/netgame.c PROPERTIES COMPILE_FLAGS "/FAs")
|
||||
set_source_files_properties(common/world.c PROPERTIES COMPILE_FLAGS "/FAs")
|
||||
|
||||
reccmp_add_target(dethrace ID CARM95)
|
||||
reccmp_configure()
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ float MapSawToTriangle(float pNumber) {
|
|||
// IDA: void __cdecl SetSightDistance(br_scalar pYon)
|
||||
// FUNCTION: CARM95 0x00434b10
|
||||
void SetSightDistance(br_scalar pYon) {
|
||||
gSight_distance_squared = pYon * 1.02f * (pYon * 1.02f);
|
||||
gSight_distance_squared = BR_SQR(pYon * 1.02);
|
||||
}
|
||||
|
||||
// IDA: br_actor* __usercall FindActorInArray@<EAX>(char *pThe_name@<EAX>)
|
||||
|
|
|
|||
Loading…
Reference in New Issue