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 /landscape.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 'landscape.c')
-rw-r--r-- | landscape.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/landscape.c b/landscape.c index 8bdd289d2..8309b18d1 100644 --- a/landscape.c +++ b/landscape.c @@ -186,21 +186,21 @@ uint GetSlopeZ(int x, int y) // direction=true: check for foundation in east and south corner // direction=false: check for foundation in west and south corner -static bool hasFoundation(TileInfo *ti, bool direction) +static bool hasFoundation(const TileInfo* ti, bool direction) { bool south, other; // southern corner and east/west corner uint slope = _tile_type_procs[ti->type]->get_slope_tileh_proc(ti); uint tileh = ti->tileh; - if(slope==0 && slope!=tileh) tileh=15; + if (slope == 0 && slope != tileh) tileh = 15; south = (tileh & 2) != (slope & 2); - if(direction) + if (direction) { other = (tileh & 4) != (slope & 4); - else + } else { other = (tileh & 1) != (slope & 1); + } return south || other; - } void DrawFoundation(TileInfo *ti, uint f) |