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 | 24c4d5b06d231785db01500360c26815d8fe4d15 (patch) | |
tree | 757477dbdc02025cc29690a4e66e40f872cab02b /src/sprite.h | |
parent | 36bb92ae241403d61dc7a3e5a1696b615be61395 (diff) | |
download | openttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz |
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/sprite.h')
-rw-r--r-- | src/sprite.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sprite.h b/src/sprite.h index ceaf8a714..91b108d34 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -8,7 +8,7 @@ * bounding box. Used especially for various multi-sprite buildings (like * depots or stations): */ -typedef struct DrawTileSeqStruct { +struct DrawTileSeqStruct { int8 delta_x; // 0x80 is sequence terminator int8 delta_y; int8 delta_z; @@ -17,19 +17,19 @@ typedef struct DrawTileSeqStruct { byte size_z; SpriteID image; SpriteID pal; -} DrawTileSeqStruct; +}; -typedef struct DrawTileSprites { +struct DrawTileSprites { SpriteID ground_sprite; SpriteID ground_pal; const DrawTileSeqStruct* seq; -} DrawTileSprites; +}; /** * This structure is the same for both Industries and Houses. * Buildings here reference a general type of construction */ -typedef struct DrawBuildingsTileStruct { +struct DrawBuildingsTileStruct { PalSpriteID ground; PalSpriteID building; byte subtile_x:4; @@ -38,7 +38,7 @@ typedef struct DrawBuildingsTileStruct { byte height:4; byte dz; byte draw_proc; /* this allows to specify a special drawing procedure.*/ -} DrawBuildingsTileStruct; +}; // Iterate through all DrawTileSeqStructs in DrawTileSprites. #define foreach_draw_tile_seq(idx, list) for (idx = list; ((byte) idx->delta_x) != 0x80; idx++) |