InitializeEntity(this, trigger_race_checkpoint_verify, INITPRIO_FINDTARGET);
}
-spawnfunc(target_checkpoint) // defrag entity
+void target_checkpoint_setup(entity this)
{
if(!g_race && !g_cts) { delete(this); return; }
defrag_ents = 1;
InitializeEntity(this, trigger_race_checkpoint_verify, INITPRIO_FINDTARGET);
}
-spawnfunc(target_startTimer) { spawnfunc_target_checkpoint(this); }
-spawnfunc(target_stopTimer) { spawnfunc_target_checkpoint(this); }
+spawnfunc(target_checkpoint)
+{
+ // xonotic defrag entity
+ target_checkpoint_setup(this);
+}
+
+// compatibility entity names
+spawnfunc(target_startTimer) { target_checkpoint_setup(this); }
+spawnfunc(target_stopTimer) { target_checkpoint_setup(this); }
void race_AbandonRaceCheck(entity p)
{