diff options
author | tron <tron@openttd.org> | 2006-02-01 06:32:03 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-01 06:32:03 +0000 |
commit | 22dc05faf2219f6e3803f9cbff92249823bb11eb (patch) | |
tree | 567a406e1224ab13f36027469339c6c42ada96f1 /unmovable_cmd.c | |
parent | 8cdd3261fc5e37d2d39364d9c2c1449f83b1c504 (diff) | |
download | openttd-22dc05faf2219f6e3803f9cbff92249823bb11eb.tar.xz |
(svn r3510) Fiddle with whitespace and parentheses
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r-- | unmovable_cmd.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c index 5697f456c..4c9a33c5e 100644 --- a/unmovable_cmd.c +++ b/unmovable_cmd.c @@ -336,8 +336,7 @@ void GenerateUnmovables(void) int dir; uint h; - if (_opt.landscape == LT_CANDY) - return; + if (_opt.landscape == LT_CANDY) return; /* add radio tower */ i = ScaleByMapSize(1000); @@ -345,18 +344,15 @@ void GenerateUnmovables(void) do { tile = RandomTile(); if (IsTileType(tile, MP_CLEAR) && GetTileSlope(tile, &h) == 0 && h >= 32) { - if(!checkRadioTowerNearby(tile)) - continue; + if (!checkRadioTowerNearby(tile)) continue; SetTileType(tile, MP_UNMOVABLE); _m[tile].m5 = 0; SetTileOwner(tile, OWNER_NONE); - if (--j == 0) - break; + if (--j == 0) break; } } while (--i); - if (_opt.landscape == LT_DESERT) - return; + if (_opt.landscape == LT_DESERT) return; /* add lighthouses */ i = ScaleByMapSize1D((Random() & 3) + 7); @@ -372,8 +368,7 @@ restart: (dir == 3) ? TileXY(r, MapMaxY()) : 0; // bottom j = 20; do { - if (--j == 0) - goto restart; + if (--j == 0) goto restart; tile = TILE_MASK(tile + ToTileIndexDiff(_tile_add[dir])); } while (!(IsTileType(tile, MP_CLEAR) && GetTileSlope(tile, &h) == 0 && h <= 16)); |