edict_t *SelectDeathmatchSpawnPoint (void) { if ( (int)(dmflags->value) & DF_SPAWN_FARTHEST) return SelectFarthestDeathmatchSpawnPoint (); else return SelectRandomDeathmatchSpawnPoint (); }
//================= //================= void Tag_Respawn (edict_t *ent) { edict_t *spot; spot = SelectFarthestDeathmatchSpawnPoint(); if(spot == NULL) { // gi.dprintf("No open spawn point, waiting...\n"); ent->nextthink = level.time + 1; return; } // gi.dprintf("Relocating\n"); VectorCopy(spot->s.origin, ent->s.origin); gi.linkentity(ent); }