Set missing game_classification members for MP Campaigns.

This fixes bug #22134.
This commit is contained in:
Andrius Silinskas 2014-06-09 19:21:11 +01:00
parent 06b7144e1a
commit d2978a66b7
2 changed files with 8 additions and 0 deletions

View file

@ -48,6 +48,7 @@ Version 1.11.15+dev:
causing OOS"
* Fix bug #22147: Assertion error when a network error is thrown during the game.
* Removed the YetAnotherMapGenerator (not finished)
* Fix bug #22134: Campaign prefix not used in mp campaign saves
Version 1.11.15:
* Graphics:

View file

@ -423,6 +423,13 @@ void create_engine::prepare_for_campaign(const std::string& difficulty)
parameters_.difficulty_define = difficulty;
}
state_.classification().campaign = current_level().data()["id"].str();
state_.classification().abbrev = current_level().data()["abbrev"].str();
state_.classification().end_text = current_level().data()["end_text"].str();
state_.classification().end_text_duration =
current_level().data()["end_text_duration"];
state_.classification().campaign_define =
current_level().data()["define"].str();
state_.classification().campaign_xtra_defines =