allow [event] (and [lua]) inside [campaign]

Those tags will be copied into each scenario of the campaign.

http://gna.org/bugs/?23769
This commit is contained in:
gfgtdf 2015-08-26 21:53:58 +02:00
parent 9821133533
commit 30dc78636b

View file

@ -240,6 +240,8 @@ void saved_game::expand_mp_events()
, std::back_inserter(mods) );
if(mp_settings_.mp_era != "") //We don't want the error message below if there is no era (= if this is a sp game)
{ mods.push_back(modevents_entry("era", mp_settings_.mp_era)); }
if(classification_.campaign != "")
{ mods.push_back(modevents_entry("campaign", classification_.campaign)); }
BOOST_FOREACH(modevents_entry& mod, mods)
{