From 28fc7b47bd35acc860e84e3885d13ffb0fad2c83 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 4 Jan 2010 21:10:20 +0000 Subject: (svn r18726) -Fix [FS#3463]: with non-uniform industries the 'supplies' text when building a station could be incorrect (missing a cargo) -Change [NoAI]: AITile::GetCargoProduction now returns the number of producers and not the number of tiles of producers. -Fix [NoAI]: AITileList_IndustryProducing would omit some tiles for at which a station would get cargo. --- src/tilearea_type.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/tilearea_type.h') diff --git a/src/tilearea_type.h b/src/tilearea_type.h index 8bac2fbbf..6c2639cff 100644 --- a/src/tilearea_type.h +++ b/src/tilearea_type.h @@ -53,6 +53,13 @@ struct TileArea { this->w = 0; this->h = 0; } + + /** + * Does this tile area intersect with another? + * @param ta the other tile area to check against. + * @return true if they intersect. + */ + bool Intersects(const TileArea &ta) const; }; #endif /* TILEAREA_TYPE_H */ -- cgit v1.2.3-70-g09d2