summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2006-12-28 11:52:12 +0000
committerKUDr <kudr@openttd.org>2006-12-28 11:52:12 +0000
commit02c07d2a86f6f585324f775a72f0706afe8e3569 (patch)
tree574a77b81258595661dcfcdfc6e76d69ad495301 /station.h
parentd657aa97de44adc8a1957529718eebedbebc3ba9 (diff)
downloadopenttd-02c07d2a86f6f585324f775a72f0706afe8e3569.tar.xz
(svn r7590) -Codechange: (r7585)
- use existing struct Rect instead of declaring new StationRect - use inline functions instead of macros
Diffstat (limited to 'station.h')
-rw-r--r--station.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/station.h b/station.h
index 1d4c850a8..aaa168384 100644
--- a/station.h
+++ b/station.h
@@ -47,15 +47,6 @@ typedef struct StationSpecList {
uint8 localidx; /// Station ID within GRF of station
} StationSpecList;
-/** Station spread out rectangle (not saved) */
-typedef struct StationRect
-{
- uint16 left;
- uint16 top;
- uint16 right;
- uint16 bottom;
-} StationRect;
-
struct Station {
TileIndex xy;
RoadStop *bus_stops;
@@ -104,7 +95,7 @@ struct Station {
byte bus_stop_status_obsolete;
byte blocked_months_obsolete;
- StationRect rect;
+ Rect rect; ///< Station spread out rectangle (not saved) maintained by StationRect_xxx() functions
};
enum {