forked from mirror/OpenTTD
(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
This commit is contained in:
@@ -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[] = {
|
||||
|
@@ -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 },
|
||||
|
@@ -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},
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user