summaryrefslogtreecommitdiff
path: root/src/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/map.h
parent36bb92ae241403d61dc7a3e5a1696b615be61395 (diff)
downloadopenttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map.h b/src/map.h
index f096f1458..67e141c53 100644
--- a/src/map.h
+++ b/src/map.h
@@ -18,7 +18,7 @@ extern uint _map_size;
#define TILE_MASK(x) ((x) & _map_tile_mask)
#define TILE_ASSERT(x) assert(TILE_MASK(x) == (x));
-typedef struct Tile {
+struct Tile {
byte type_height;
byte m1;
uint16 m2;
@@ -26,7 +26,7 @@ typedef struct Tile {
byte m4;
byte m5;
byte m6;
-} Tile;
+};
extern Tile* _m;
@@ -92,10 +92,10 @@ static inline uint TileY(TileIndex tile)
}
-typedef struct TileIndexDiffC {
+struct TileIndexDiffC {
int16 x;
int16 y;
-} TileIndexDiffC;
+};
static inline TileIndexDiff ToTileIndexDiff(TileIndexDiffC tidc)
{