summaryrefslogtreecommitdiff
path: root/src/station.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
committerrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
commit24c4d5b06d231785db01500360c26815d8fe4d15 (patch)
tree757477dbdc02025cc29690a4e66e40f872cab02b /src/station.h
parent36bb92ae241403d61dc7a3e5a1696b615be61395 (diff)
downloadopenttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/station.h')
-rw-r--r--src/station.h12
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);