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

Function InitPlayerNewGame

Descent3/Player.cpp:1392–1399  ·  view source on GitHub ↗

Called when a player is entering the game for the first time

Source from the content-addressed store, hash-verified

1390
1391// Called when a player is entering the game for the first time
1392void InitPlayerNewGame(int slot) {
1393 Players[slot].num_kills_total = 0;
1394 Players[slot].num_deaths_total = 0;
1395 Players[slot].score = 0;
1396
1397 uint32_t bit = (0x01 << slot);
1398 Players_typing &= ~bit;
1399}
1400
1401// Called when a player is entering a new level
1402void InitPlayerNewLevel(int slot) {

Callers 3

StartNewGameFunction · 0.85
MultiDoPlayerFunction · 0.85
MultiDoPlayerEnteredGameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected