summaryrefslogtreecommitdiff
path: root/table/ai_rail.h
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/ai_rail.h
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/ai_rail.h')
-rw-r--r--table/ai_rail.h6
1 files changed, 3 insertions, 3 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[] = {