Mercurial > hg > openttd
comparison src/town_cmd.cpp @ 17684:2773b630b41f draft
(svn r22459) -Doc: Typo fixes and doxygen markup improvements.
author | alberth <alberth@openttd.org> |
---|---|
date | Sat, 14 May 2011 18:35:40 +0000 |
parents | 567b7496cee5 |
children | bcd20b97e0ee |
comparison
equal
deleted
inserted
replaced
17683:b1c4622f22d1 | 17684:2773b630b41f |
---|---|
2051 */ | 2051 */ |
2052 static bool CheckTownBuild2x2House(TileIndex *tile, Town *t, uint maxz, bool noslope) | 2052 static bool CheckTownBuild2x2House(TileIndex *tile, Town *t, uint maxz, bool noslope) |
2053 { | 2053 { |
2054 TileIndex tile2 = *tile; | 2054 TileIndex tile2 = *tile; |
2055 | 2055 |
2056 for (DiagDirection d = DIAGDIR_SE;;d++) { // 'd' goes through DIAGDIR_SE, DIAGDIR_SW, DIAGDIR_NW, DIAGDIR_END | 2056 for (DiagDirection d = DIAGDIR_SE;; d++) { // 'd' goes through DIAGDIR_SE, DIAGDIR_SW, DIAGDIR_NW, DIAGDIR_END |
2057 if (TownLayoutAllows2x2HouseHere(t, tile2) && CheckFree2x2Area(tile2, t->index, maxz, noslope)) { | 2057 if (TownLayoutAllows2x2HouseHere(t, tile2) && CheckFree2x2Area(tile2, t->index, maxz, noslope)) { |
2058 *tile = tile2; | 2058 *tile = tile2; |
2059 return true; | 2059 return true; |
2060 } | 2060 } |
2061 if (d == DIAGDIR_END) break; | 2061 if (d == DIAGDIR_END) break; |