MCPcopy Create free account
hub / github.com/ZDoom/Raze / InitNetPlayerOptions

Function InitNetPlayerOptions

source/games/sw/src/network.cpp:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58// must start out as 0
59
60void InitNetPlayerOptions(void)
61{
62// short pnum;
63 DSWPlayer* pp = getPlayer(myconnectindex);
64
65 strncpy(pp->PlayerName, playername, 31);
66
67 // myconnectindex palette
68 pp->TeamColor = gs.NetColor;
69 DSWActor* actor = pp->GetActor();
70 if (actor)
71 {
72 actor->spr.pal = PALETTE_PLAYER0 + pp->TeamColor;
73 pp->GetActor()->user.spal = actor->spr.pal;
74 }
75}
76
77END_SW_NS

Callers 1

InitRunLevelFunction · 0.85

Calls 2

getPlayerFunction · 0.70
GetActorMethod · 0.45

Tested by

no test coverage detected