summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-03 07:43:00 +0000
committertron <tron@openttd.org>2004-12-03 07:43:00 +0000
commitecf1c35849e0713f0c40727ad2253f0ffec94b93 (patch)
treee39a57439be0a2878fec3147140ca4e16f6b00e6 /table
parent9a900c0f30da9203b21b676cc129a97b5a6ec719 (diff)
downloadopenttd-ecf1c35849e0713f0c40727ad2253f0ffec94b93.tar.xz
(svn r907) Sprinkle holy ANSI water:
- "inline" must before the return type (and after "static") - Initialise all struct members, not just some of them - Remove (one) spurious semicolon
Diffstat (limited to 'table')
-rw-r--r--table/ai_rail.h6
-rw-r--r--table/station_land.h2
-rw-r--r--table/unmovable_land.h6
3 files changed, 7 insertions, 7 deletions
diff --git a/table/ai_rail.h b/table/ai_rail.h
index daf70fe44..23fa20b44 100644
--- a/table/ai_rail.h
+++ b/table/ai_rail.h
@@ -24,7 +24,7 @@ typedef struct {
#define MKSTATION(a,b) {1,a,b}
#define MKRAIL(a,b) {2,a,b}
#define MKCLRRAIL(a,b) {3,a,b}
-#define MKEND {4}}
+#define MKEND {4, 0, 0}}
static const AiDefaultRailBlock _raildata_ai_0 = {
MKHDR(1,2,1,0,1)
@@ -463,12 +463,12 @@ static const AiDefaultRoadBlock * const _road_default_block_data[] = {
static const AiDefaultBlockData _airportdata_ai_0[] = {
MKAIR(1, 0),
- {1},
+ {1, 0, 0},
};
static const AiDefaultBlockData _airportdata_ai_1[] = {
MKAIR(0, 0),
- {1}
+ {1, 0, 0}
};
static const AiDefaultBlockData * const _airport_default_block_data[] = {
diff --git a/table/station_land.h b/table/station_land.h
index 8beaf141e..14b70ec25 100644
--- a/table/station_land.h
+++ b/table/station_land.h
@@ -1,4 +1,4 @@
-#define TILE_SEQ_END() { 0x80 }
+#define TILE_SEQ_END() { 0x80, 0, 0, 0, 0, 0, 0 }
static const DrawTileSeqStruct _station_display_datas_0[] = {
{ 0, 0, 0, 16, 5, 2, 0x842E },
diff --git a/table/unmovable_land.h b/table/unmovable_land.h
index 7cedafbf3..b29f0da6d 100644
--- a/table/unmovable_land.h
+++ b/table/unmovable_land.h
@@ -1,8 +1,8 @@
-#define TILE_SEQ_END() { 0x80 }
+#define TILE_SEQ_END() { 0x80, 0, 0, 0, 0, 0, 0 }
static const DrawTileUnmovableStruct _draw_tile_unmovable_data[] = {
- {0xA29, 7,7, 2,2, 70},
- {0xA2A, 4,4, 7,7, 61},
+ {0xA29, 7,7, 2,2, 70, 0},
+ {0xA2A, 4,4, 7,7, 61, 0},
};