display the era id for not installed eras in the lobby
This commit is contained in:
parent
0d5fc5d701
commit
ceab16a500
3 changed files with 5 additions and 1 deletions
|
@ -40,6 +40,7 @@ Version 1.3.8+svn:
|
|||
* fixed a crash if the client recieves invalid utf-8
|
||||
* fixed a server side bug with could cause invalid utf-8 being send to a
|
||||
client.
|
||||
* display the era id for not installed eras in the lobby.
|
||||
* units:
|
||||
* balancing changes:
|
||||
* created undead variations for the 'bat' and 'gryphon' race
|
||||
|
|
|
@ -44,6 +44,7 @@ Version 1.3.8+svn:
|
|||
* Triple Blitz to Alirok Marsh
|
||||
* Minimum number of turns reduced to 1.
|
||||
* Fixed a crash if the client recieves invalid utf-8.
|
||||
* Display the era id for not installed eras in the lobby.
|
||||
|
||||
* Unit changes and balancing
|
||||
* Created undead variations for the 'bat' and 'gryphon' race.
|
||||
|
|
|
@ -364,10 +364,12 @@ void gamebrowser::set_game_items(const config& cfg, const config& game_config)
|
|||
games_.push_back(game_item());
|
||||
if((**game)["mp_era"] != "") {
|
||||
const config* const era_cfg = game_config.find_child("era", "id", (**game)["mp_era"]);
|
||||
utils::string_map symbols;
|
||||
symbols["era_id"] = (**game)["mp_era"];
|
||||
if (era_cfg != NULL) {
|
||||
games_.back().map_info = era_cfg->get_attribute("name");
|
||||
} else {
|
||||
games_.back().map_info = _("Unknown era");
|
||||
games_.back().map_info = vgettext("Unknown era: $era_id", symbols);
|
||||
verified = false;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue