Bläddra i källkod

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

Fixed  #5979

Thanks to @M45T3Ryu, @Lemongrass3110 and @aleos89 !
Atemo 3 år sedan
förälder
incheckning
4ca4e71a17
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/map/script.cpp

+ 1 - 0
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