Print which campaign is causing the extra_defines warning
Whether or not it's the campaign being played, this warning
gets printed if any add-on has a [campaign]extra_defines=
attribute with one of the deprecated strings (a hardcoded
list about 20 lines above the line that's changed here).
(cherry picked from commit c1499e06b5
)
This commit is contained in:
parent
6a8c54c028
commit
ec0c260e0e
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ void game_config_manager::load_addons_cfg()
|
|||
// it before also didn't work in all cases (see #4402)
|
||||
// i don't think it is worth it.
|
||||
deprecated_message(
|
||||
"extra_defines=" + str,
|
||||
"campaign id='" + campaign["id"].str() + "' has extra_defines=" + str,
|
||||
DEP_LEVEL::REMOVED,
|
||||
{1, 15, 4},
|
||||
_("instead, use the macro with the same name in the [campaign] tag")
|
||||
|
|
Loading…
Add table
Reference in a new issue