(svn r17110) -Fix [NoAI]: Print a warning message in the AI console when a deprecated function is used

This commit is contained in:
yexo
2009-08-08 13:50:18 +00:00
parent ba2f6f0a66
commit 2d1c64948a
3 changed files with 3 additions and 1 deletions

View File

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