From 2d1c64948a2d3e30844cc1332eed744a4a957bc8 Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 8 Aug 2009 13:50:18 +0000 Subject: (svn r17110) -Fix [NoAI]: Print a warning message in the AI console when a deprecated function is used --- src/ai/api/ai_order.hpp | 2 +- src/ai/api/ai_sign.cpp | 1 + src/ai/api/ai_tile.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ai/api/ai_order.hpp b/src/ai/api/ai_order.hpp index f3ccbb32c..c04ffd799 100644 --- a/src/ai/api/ai_order.hpp +++ b/src/ai/api/ai_order.hpp @@ -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); diff --git a/src/ai/api/ai_sign.cpp b/src/ai/api/ai_sign.cpp index 29609f29a..66ea4183c 100644 --- a/src/ai/api/ai_sign.cpp +++ b/src/ai/api/ai_sign.cpp @@ -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(); } diff --git a/src/ai/api/ai_tile.cpp b/src/ai/api/ai_tile.cpp index f54285477..93f0bd82e 100644 --- a/src/ai/api/ai_tile.cpp +++ b/src/ai/api/ai_tile.cpp @@ -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); -- cgit v1.2.3-70-g09d2