Initialize Netgame name from InterfaceUniqueState

Players[] is not defined at this point.
This commit is contained in:
Kp 2019-07-16 04:00:50 +00:00
parent 4a9e027e02
commit b19149c7b3

View file

@ -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;