From 41101a2d67640e1808e852f3b9af7a8152b6b8ac Mon Sep 17 00:00:00 2001 From: Steve Cotton Date: Sat, 17 Aug 2019 20:09:43 +0200 Subject: [PATCH] Change the deprecation of [unit]overlays= to 1.17 As discussed post-merge in PR#4211. --- src/units/unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/units/unit.cpp b/src/units/unit.cpp index a6cdc04fe36..50992670108 100644 --- a/src/units/unit.cpp +++ b/src/units/unit.cpp @@ -514,7 +514,7 @@ void unit::init(const config& cfg, bool use_traits, const vconfig* vcfg) if(const config::attribute_value* v = cfg.get("overlays")) { auto overlays = utils::parenthetical_split(v->str(), ','); if(overlays.size() > 0) { - deprecated_message("[unit]overlays", DEP_LEVEL::PREEMPTIVE, {1, 15, 0}, "Add overlays via objects instead."); + deprecated_message("[unit]overlays", DEP_LEVEL::PREEMPTIVE, {1, 17, 0}, "This warning is only triggered by the cases that *do* still work: setting [unit]overlays= works, but the [unit]overlays attribute will always be empty if WML tries to read it."); config effect; config o; effect["apply_to"] = "overlay";