Fix next map not being displayed on the lobby UI after map vote (#23231)
Fix map not being displayed in lobby ui after map vote
This commit is contained in:
@@ -107,8 +107,8 @@ namespace Content.Server.GameTicking
|
||||
return;
|
||||
|
||||
Preset = preset;
|
||||
UpdateInfoText();
|
||||
ValidateMap();
|
||||
UpdateInfoText();
|
||||
|
||||
if (force)
|
||||
{
|
||||
|
||||
@@ -68,13 +68,22 @@ namespace Content.Server.GameTicking
|
||||
|
||||
if (!foundOne)
|
||||
{
|
||||
stationNames.Append(Loc.GetString("game-ticker-no-map-selected"));
|
||||
stationNames.Append(_gameMapManager.GetSelectedMap()?.MapName ??
|
||||
Loc.GetString("game-ticker-no-map-selected"));
|
||||
}
|
||||
|
||||
var gmTitle = Loc.GetString(preset.ModeTitle);
|
||||
var desc = Loc.GetString(preset.Description);
|
||||
return Loc.GetString(RunLevel == GameRunLevel.PreRoundLobby ? "game-ticker-get-info-preround-text" : "game-ticker-get-info-text",
|
||||
("roundId", RoundId), ("playerCount", playerCount), ("readyCount", readyCount), ("mapName", stationNames.ToString()),("gmTitle", gmTitle),("desc", desc));
|
||||
return Loc.GetString(
|
||||
RunLevel == GameRunLevel.PreRoundLobby
|
||||
? "game-ticker-get-info-preround-text"
|
||||
: "game-ticker-get-info-text",
|
||||
("roundId", RoundId),
|
||||
("playerCount", playerCount),
|
||||
("readyCount", readyCount),
|
||||
("mapName", stationNames.ToString()),
|
||||
("gmTitle", gmTitle),
|
||||
("desc", desc));
|
||||
}
|
||||
|
||||
private TickerLobbyStatusEvent GetStatusMsg(ICommonSession session)
|
||||
|
||||
Reference in New Issue
Block a user