(svn r16965) -Codechange: use tile area instead of sets of variables for the station joiner code.
This commit is contained in:
@@ -23,18 +23,6 @@ struct StationSpecList {
|
||||
uint8 localidx; ///< Station ID within GRF of station
|
||||
};
|
||||
|
||||
/** Represents the covered area */
|
||||
struct TileArea {
|
||||
/** Just construct this tile area */
|
||||
TileArea() {}
|
||||
/** Construct this tile area with some set values */
|
||||
TileArea(TileIndex tile, uint8 w, uint8 h) : tile(tile), w(w), h(h) {}
|
||||
|
||||
TileIndex tile; ///< The base tile of the area
|
||||
uint8 w; ///< The width of the area
|
||||
uint8 h; ///< The height of the area
|
||||
};
|
||||
|
||||
|
||||
/** StationRect - used to track station spread out rectangle - cheaper than scanning whole map */
|
||||
struct StationRect : public Rect {
|
||||
|
Reference in New Issue
Block a user