(svn r7590) -Codechange: (r7585)

- use existing struct Rect instead of declaring new StationRect
 - use inline functions instead of macros
This commit is contained in:
KUDr
2006-12-28 11:52:12 +00:00
parent d657aa97de
commit 02c07d2a86
2 changed files with 26 additions and 35 deletions

View File

@@ -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 {