From 369d4ce17932a3ad4deb19319c35d54232eb98a2 Mon Sep 17 00:00:00 2001 From: yexo Date: Wed, 8 Jul 2009 17:42:58 +0000 Subject: (svn r16767) -Fix [NoAI] (r16524): AITile::GetCargoProduction/Acceptance didn't accept a radius of 0 anymore --- src/ai/api/ai_tile.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ai/api/ai_tile.hpp') diff --git a/src/ai/api/ai_tile.hpp b/src/ai/api/ai_tile.hpp index 965a829f6..78abfde73 100644 --- a/src/ai/api/ai_tile.hpp +++ b/src/ai/api/ai_tile.hpp @@ -305,7 +305,7 @@ public: * @pre AIMap::IsValidTile(tile). * @pre width > 0. * @pre height > 0. - * @pre radius > 0. + * @pre radius >= 0. * @return Value below 8 means no acceptance; the more the better. */ static int32 GetCargoAcceptance(TileIndex tile, CargoID cargo_type, int width, int height, int radius); @@ -322,7 +322,7 @@ public: * @pre AIMap::IsValidTile(tile). * @pre width > 0. * @pre height > 0. - * @pre radius > 0. + * @pre radius >= 0. * @return The tiles that produce this cargo within radius of the tile. * @note Town(houses) are not included in the value. */ -- cgit v1.2.3-54-g00ecf