diff --git a/changelog b/changelog index 2f85b59b22de..b86fc960bf0b 100644 --- a/changelog +++ b/changelog @@ -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: diff --git a/src/multiplayer_create_engine.cpp b/src/multiplayer_create_engine.cpp index b5121350a014..8909211bd25c 100644 --- a/src/multiplayer_create_engine.cpp +++ b/src/multiplayer_create_engine.cpp @@ -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 =