diff options
author | tron <tron@openttd.org> | 2005-10-22 06:39:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-22 06:39:32 +0000 |
commit | 2cc2154ad26b96b032df2f4fca0ce1634e6330b2 (patch) | |
tree | 646e010d91defd66326958b9e15c3eb36077760c /industry_cmd.c | |
parent | 01638700067b9720c187598ad6b4bf786e0e63c1 (diff) | |
download | openttd-2cc2154ad26b96b032df2f4fca0ce1634e6330b2.tar.xz |
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index 385c10ace..f08b68515 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -403,7 +403,8 @@ static uint GetSlopeZ_Industry(const TileInfo* ti) return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z; } -static uint GetSlopeTileh_Industry(const TileInfo *ti) { +static uint GetSlopeTileh_Industry(const TileInfo* ti) +{ return 0; } @@ -1008,7 +1009,7 @@ static void PlantFarmField(TileIndex tile) SetupFarmFieldFence(tile + TileDiffXY(0, size_y - 1), size_x, type, 0); } -static void MaybePlantFarmField(Industry *i) +static void MaybePlantFarmField(const Industry* i) { TileIndex tile; @@ -1402,7 +1403,7 @@ do_clear: static bool CheckIfTooCloseToIndustry(TileIndex tile, int type) { - Industry *i; + const Industry* i; const IndustrySpec *spec; spec = &_industry_spec[type]; @@ -2022,4 +2023,3 @@ static void Load_INDY(void) const ChunkHandler _industry_chunk_handlers[] = { { 'INDY', Save_INDY, Load_INDY, CH_ARRAY | CH_LAST}, }; - |