diff options
author | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
commit | 979ccd45baa9a38169661ba379a341cae8619c3b (patch) | |
tree | 757477dbdc02025cc29690a4e66e40f872cab02b /src/station.h | |
parent | 4169bfba0604b33bad92389bd3eb6f9acde89f49 (diff) | |
download | openttd-979ccd45baa9a38169661ba379a341cae8619c3b.tar.xz |
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/station.h')
-rw-r--r-- | src/station.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/station.h b/src/station.h index bf61a448b..bced6a2be 100644 --- a/src/station.h +++ b/src/station.h @@ -12,7 +12,7 @@ static const StationID INVALID_STATION = 0xFFFF; -typedef struct GoodsEntry { +struct GoodsEntry { GoodsEntry() : waiting_acceptance(0), unload_pending(0), @@ -35,7 +35,7 @@ typedef struct GoodsEntry { byte last_speed; byte last_age; int32 feeder_profit; -} GoodsEntry; +}; /** A Stop for a Road Vehicle */ struct RoadStop { @@ -79,11 +79,11 @@ protected: static RoadStop *AllocateRaw(); }; -typedef struct StationSpecList { +struct StationSpecList { const StationSpec *spec; uint32 grfid; /// GRF ID of this custom station uint8 localidx; /// Station ID within GRF of station -} StationSpecList; +}; /** StationRect - used to track station spread out rectangle - cheaper than scanning whole map */ struct StationRect : public Rect { @@ -207,13 +207,13 @@ enum { HVOT_BUOY = 1 << 6 }; -typedef enum CatchmentAreas { +enum CatchmentArea { CA_NONE = 0, CA_BUS = 3, CA_TRUCK = 3, CA_TRAIN = 4, CA_DOCK = 5 -} CatchmentArea; +}; void ModifyStationRatingAround(TileIndex tile, PlayerID owner, int amount, uint radius); |