From bf1b6d570b19938279435a32a089448a7dd0a792 Mon Sep 17 00:00:00 2001 From: terkhen Date: Sat, 3 Dec 2011 20:19:33 +0000 Subject: (svn r23402) -Add: Function to check if a TileArea contains a tile. (michi_cc) --- src/tilearea_type.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tilearea_type.h') diff --git a/src/tilearea_type.h b/src/tilearea_type.h index 46a093fc6..5826ce116 100644 --- a/src/tilearea_type.h +++ b/src/tilearea_type.h @@ -48,6 +48,8 @@ struct TileArea { bool Intersects(const TileArea &ta) const; + bool Contains(TileIndex tile) const; + void ClampToMap(); /** -- cgit v1.2.3-54-g00ecf