wip
This commit is contained in:
parent
ce2bdaa7f1
commit
6c613db81d
|
|
@ -71,6 +71,7 @@ target_sources(dethrace_obj PRIVATE
|
|||
common/replay.c
|
||||
common/loading.c
|
||||
common/piping.c
|
||||
common/powerup.c
|
||||
|
||||
common/brucetrk.c
|
||||
common/brucetrk.h
|
||||
|
|
@ -140,8 +141,6 @@ target_sources(dethrace_obj PRIVATE
|
|||
common/options.h
|
||||
common/pedestrn.c
|
||||
common/pedestrn.h
|
||||
common/powerup.c
|
||||
common/powerup.h
|
||||
common/pratcam.c
|
||||
common/pratcam.h
|
||||
common/racestrt.c
|
||||
|
|
@ -194,11 +193,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/structur.c PROPERTIES COMPILE_FLAGS "/FAs")
|
||||
set_source_files_properties(common/racesumm.c PROPERTIES COMPILE_FLAGS "/FAs")
|
||||
set_source_files_properties(common/replay.c PROPERTIES COMPILE_FLAGS "/FAs")
|
||||
set_source_files_properties(common/loading.c PROPERTIES COMPILE_FLAGS "/FAs")
|
||||
set_source_files_properties(common/piping.c PROPERTIES COMPILE_FLAGS "/FAs")
|
||||
set_source_files_properties(common/powerup.c PROPERTIES COMPILE_FLAGS "/FAs")
|
||||
|
||||
reccmp_add_target(dethrace ID CARM95)
|
||||
reccmp_configure()
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ int GotPowerupX(tCar_spec* pCar, int pIndex, int pTell_net_players, int pDisplay
|
|||
char* s2;
|
||||
tNet_message* the_message;
|
||||
|
||||
if (pIndex < 0 || pIndex >= gNumber_of_powerups) {
|
||||
if (pIndex >= gNumber_of_powerups || pIndex < 0) {
|
||||
return -1;
|
||||
}
|
||||
the_powerup = &gPowerup_array[pIndex];
|
||||
|
|
|
|||
Loading…
Reference in New Issue