Fix: Industry coverage area is no longer rectangular. (#7464)
AIs test station catchment in reverse to how players see station catchment. This did not take account of non-rectangular station catchment areas, so AIs could end up placing stations in locations that did not accept/deliver cargo.
This commit is contained in:
@@ -34,6 +34,14 @@ public:
|
||||
this->h = 0;
|
||||
}
|
||||
|
||||
BitmapTileArea(const TileArea &ta)
|
||||
{
|
||||
this->tile = ta.tile;
|
||||
this->w = ta.w;
|
||||
this->h = ta.h;
|
||||
this->data.resize(Index(this->w, this->h));
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset and clear the BitmapTileArea.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user