Fix map selection in the lobby gamesetup. Patch by elexis.
This was SVN commit r17049.
This commit is contained in:
parent
c19903936b
commit
2971852f27
@ -613,7 +613,7 @@ function updateGameSelection()
|
||||
Engine.GetGUIObjectByName("sgNbPlayers").caption = g_GameList[g].nbp + "/" + g_GameList[g].tnbp;
|
||||
Engine.GetGUIObjectByName("sgPlayersNames").caption = g_GameList[g].players;
|
||||
Engine.GetGUIObjectByName("sgMapSize").caption = translatedMapSize(g_GameList[g].mapSize);
|
||||
let mapTypeIdx = g_MapTypes.indexOf(g_GameList[g].mapType);
|
||||
let mapTypeIdx = g_MapTypes.Name.indexOf(g_GameList[g].mapType);
|
||||
Engine.GetGUIObjectByName("sgMapType").caption = mapTypeIdx != -1 ? g_MapTypes.Title[mapTypeIdx] : "";
|
||||
|
||||
// Display map description if it exists, otherwise display a placeholder.
|
||||
|
Loading…
Reference in New Issue
Block a user