diff options
author | Erich Eckner <git@eckner.net> | 2018-10-30 11:13:12 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-16 19:11:46 +0100 |
commit | 5430113f4a842e519d2661a490022dcdf86f5247 (patch) | |
tree | 9368bef97133cea28eae5fc2161a4fdfd61dae27 /src/base_station_base.h | |
parent | 278a705bbbd378a4c05a795b42028ba440a8bd49 (diff) | |
download | openttd-5430113f4a842e519d2661a490022dcdf86f5247.tar.xz |
underground patch applied
Diffstat (limited to 'src/base_station_base.h')
-rw-r--r-- | src/base_station_base.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/base_station_base.h b/src/base_station_base.h index cd512c517..3602a56d1 100644 --- a/src/base_station_base.h +++ b/src/base_station_base.h @@ -28,6 +28,13 @@ struct StationSpecList { /** StationRect - used to track station spread out rectangle - cheaper than scanning whole map */ +/* +** Патч "layer" +** Критическое изменение: +** "Rect" подразумевает только верхний слой (поверхность) +** (станция может располагаться на любом слое, -- +** Rect описывает соответствующую часть верхнего слоя) +*/ struct StationRect : public Rect { enum StationRectMode { @@ -38,7 +45,7 @@ struct StationRect : public Rect { StationRect(); void MakeEmpty(); - bool PtInExtendedRect(int x, int y, int distance = 0) const; + bool PtInExtendedRect(int topx, int topy, int distance = 0) const; bool IsEmpty() const; CommandCost BeforeAddTile(TileIndex tile, StationRectMode mode); CommandCost BeforeAddRect(TileIndex tile, int w, int h, StationRectMode mode); |