summaryrefslogtreecommitdiff
path: root/src/road_map.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/road_map.h
parent36bb92ae241403d61dc7a3e5a1696b615be61395 (diff)
downloadopenttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/road_map.h')
-rw-r--r--src/road_map.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/road_map.h b/src/road_map.h
index 59da6be0e..6cc6faed0 100644
--- a/src/road_map.h
+++ b/src/road_map.h
@@ -9,11 +9,11 @@
#include "tile.h"
-typedef enum RoadTileType {
+enum RoadTileType {
ROAD_TILE_NORMAL,
ROAD_TILE_CROSSING,
ROAD_TILE_DEPOT
-} RoadTileType;
+};
static inline RoadTileType GetRoadTileType(TileIndex t)
{
@@ -105,7 +105,7 @@ static inline void ToggleSnow(TileIndex t)
}
-typedef enum Roadside {
+enum Roadside {
ROADSIDE_BARREN = 0,
ROADSIDE_GRASS = 1,
ROADSIDE_PAVED = 2,
@@ -113,7 +113,7 @@ typedef enum Roadside {
ROADSIDE_TREES = 5,
ROADSIDE_GRASS_ROAD_WORKS = 6,
ROADSIDE_PAVED_ROAD_WORKS = 7
-} Roadside;
+};
static inline Roadside GetRoadside(TileIndex tile)
{