MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetGoalRoomForPlayer

Function GetGoalRoomForPlayer

Descent3/Player.cpp:3346–3354  ·  view source on GitHub ↗

Returns the goal room of the passed in player

Source from the content-addressed store, hash-verified

3344
3345// Returns the goal room of the passed in player
3346int GetGoalRoomForPlayer(int slot) {
3347 ASSERT(slot >= 0 && slot <= MAX_PLAYERS);
3348 int team = PlayerGetTeam(slot);
3349
3350 if (team == -1)
3351 return -1;
3352
3353 return (GetGoalRoomForTeam(team));
3354}
3355
3356// Sets the maximum number of teams in a game
3357void SetMaxTeams(int num) {

Callers

nothing calls this directly

Calls 2

PlayerGetTeamFunction · 0.85
GetGoalRoomForTeamFunction · 0.85

Tested by

no test coverage detected