Skip to content

Commit

Permalink
Set missing game_classification members for MP Campaigns.
Browse files Browse the repository at this point in the history
This fixes bug #22134.
  • Loading branch information
andrius-sil committed Jun 9, 2014
1 parent 06b7144 commit d2978a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions src/multiplayer_create_engine.cpp
Expand Up @@ -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 =
Expand Down

0 comments on commit d2978a6

Please sign in to comment.