MCPcopy Create free account
hub / github.com/assaultcube/AC / nextplayerstart

Function nextplayerstart

source/src/world.cpp:639–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637}
638
639void nextplayerstart(int *type)
640{
641 static int cycle = -1;
642
643 if(noteditmode("nextplayerstart")) return;
644 cycle = findentity(PLAYERSTART, cycle + 1, *type);
645 if(cycle >= 0)
646 {
647 gotoplayerstart(player1, &ents[cycle]);
648 entinmap(player1);
649 }
650}
651
652COMMAND(nextplayerstart, "i");
653

Callers

nothing calls this directly

Calls 4

noteditmodeFunction · 0.85
findentityFunction · 0.85
gotoplayerstartFunction · 0.85
entinmapFunction · 0.85

Tested by

no test coverage detected