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:
PeterN
2019-04-13 14:27:57 +01:00
committed by GitHub
parent abe8cf4985
commit 3bbd7ea2c1
3 changed files with 43 additions and 13 deletions

View File

@@ -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.
*/