瀏覽代碼

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 年之前
父節點
當前提交
4ca4e71a17
共有 1 個文件被更改,包括 1 次插入0 次删除
  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" );
 			ShowWarning( "This constant was deprecated and could become unavailable anytime soon.\n" );
 			if (str_data[l].name)
 			if (str_data[l].name)
 				ShowWarning( "Please use '%s' instead!\n", str_data[l].name );
 				ShowWarning( "Please use '%s' instead!\n", str_data[l].name );
+			disp_warning_message("parse_simpleexpr: deprecated constant", p);
 		}
 		}
 #endif
 #endif