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 84baedf commit 51a2c04
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 @@ -184,6 +184,7 @@ Version 1.13.0-dev:
* Fix bug #22123 "Replays don't reset map when reset button is pressed, causing OOS"
* Wesnoth reports an error if it evalutes [if] and finds no [then], [else], [elseif]
children, as a chat message from lua.
* Fix bug #22134: Campaign prefix not used in mp campaign saves

Version 1.11.11:
* Add-ons server:
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 51a2c04

Please sign in to comment.