Skip to content

Commit

Permalink
Initialize Netgame name from InterfaceUniqueState
Browse files Browse the repository at this point in the history
Players[] is not defined at this point.
  • Loading branch information
vLKp committed Jul 16, 2019
1 parent 4a9e027 commit b19149c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion similar/main/net_udp.cpp
Expand Up @@ -3916,7 +3916,7 @@ window_event_result net_udp_setup_game()
#endif
Netgame.difficulty=PlayerCfg.DefaultDifficulty;
Netgame.PacketsPerSec=DEFAULT_PPS;
snprintf(Netgame.game_name.data(), Netgame.game_name.size(), "%s%s", static_cast<const char *>(self.callsign), TXT_S_GAME);
snprintf(Netgame.game_name.data(), Netgame.game_name.size(), "%s%s", static_cast<const char *>(InterfaceUniqueState.PilotName), TXT_S_GAME);
reset_UDP_MyPort();
Netgame.ShufflePowerupSeed = 0;
Netgame.BrightPlayers = 1;
Expand Down

0 comments on commit b19149c

Please sign in to comment.