Changeset - r12645:5482768a01c1
[Not reviewed]
master
0 3 0
yexo - 15 years ago 2009-08-08 13:50:18
yexo@openttd.org
(svn r17110) -Fix [NoAI]: Print a warning message in the AI console when a deprecated function is used
3 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ai/api/ai_order.hpp
Show inline comments
 
@@ -404,7 +404,7 @@ public:
 
	static bool SetOrderFlags(VehicleID vehicle_id, OrderPosition order_position, AIOrderFlags order_flags);
 

	
 
	/**
 
	 * Deprecated, use SetOrderFlags instead.
 
	 * @Deprecated, use SetOrderFlags instead.
 
	 */
 
	static bool ChangeOrder(VehicleID vehicle_id, OrderPosition order_position, AIOrderFlags order_flags);
 

	
src/ai/api/ai_sign.cpp
Show inline comments
 
@@ -15,6 +15,7 @@
 

	
 
/* static */ SignID AISign::GetMaxSignID()
 
{
 
	AILog::Warning("AISign::GetMaxSignID is deprecated and will be removed soon, please use AISignList instead.");
 
	return (SignID)::Sign::GetPoolSize();
 
}
 

	
src/ai/api/ai_tile.cpp
Show inline comments
 
@@ -131,6 +131,7 @@
 

	
 
/* static */ int32 AITile::GetHeight(TileIndex tile)
 
{
 
	AILog::Warning("AITile::GetHeight is deprecated and will be removed soon, please use GetMinHeight/GetMaxHeight/GetCornerHeight instead.");
 
	if (!::IsValidTile(tile)) return -1;
 

	
 
	return ::TileHeight(tile);
0 comments (0 inline, 0 general)