Display more info on the location of the deprecated constant (script from parse_script only) (#5993)

Fixed  #5979

Thanks to @M45T3Ryu, @Lemongrass3110 and @aleos89 !
This commit is contained in:
Atemo 2021-06-08 15:38:02 +02:00 committed by GitHub
parent acbebc4cd8
commit 4ca4e71a17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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