From 4ca4e71a178714a334615aeb82bca2c4294e4591 Mon Sep 17 00:00:00 2001 From: Atemo Date: Tue, 8 Jun 2021 15:38:02 +0200 Subject: [PATCH] Display more info on the location of the deprecated constant (script from parse_script only) (#5993) Fixed #5979 Thanks to @M45T3Ryu, @Lemongrass3110 and @aleos89 ! --- src/map/script.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/script.cpp b/src/map/script.cpp index 109ae77ddb..4180b78c31 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -1380,6 +1380,7 @@ const char* parse_simpleexpr(const char *p) ShowWarning( "This constant was deprecated and could become unavailable anytime soon.\n" ); if (str_data[l].name) ShowWarning( "Please use '%s' instead!\n", str_data[l].name ); + disp_warning_message("parse_simpleexpr: deprecated constant", p); } #endif