forked from mirrors/0ad
Ask the lobby player to open the mod selection page if the mods don't match the ones from the lobby host, as decided in the staff meeting.
This was SVN commit r21761.
This commit is contained in:
@@ -1178,10 +1178,18 @@ function joinButton()
|
||||
messageBox(
|
||||
400, 200,
|
||||
translate("Your active mods do not match the mods of this game.") + "\n\n" +
|
||||
comparedModsString(JSON.parse(game.mods), Engine.GetEngineInfo().mods),
|
||||
comparedModsString(JSON.parse(game.mods), Engine.GetEngineInfo().mods) + "\n\n" +
|
||||
translate("Do you want to switch to the mod selection page?"),
|
||||
translate("Incompatible mods"),
|
||||
[translate("Ok")],
|
||||
[null]
|
||||
[translate("No"), translate("Yes")],
|
||||
[
|
||||
null,
|
||||
() => {
|
||||
Engine.SwitchGuiPage("page_modmod.xml", {
|
||||
"cancelbutton": true
|
||||
});
|
||||
}
|
||||
]
|
||||
);
|
||||
else if (game.state == "init" || stringifiedTeamListToPlayerData(game.players).some(player => player.Name == username))
|
||||
joinSelectedGame();
|
||||
|
||||
Reference in New Issue
Block a user