(svn r13367) -Codechange: Allow CircularTileSearch function to return the tile where search has been successful, or INVALID_TILE if it has not

This commit is contained in:
belugas
2008-06-03 02:20:27 +00:00
parent 00851610e1
commit b0ada3fbbf
4 changed files with 14 additions and 8 deletions

View File

@@ -2193,7 +2193,7 @@ static void TownActionBuildStatue(Town *t)
{
TileIndex tile = t->xy;
if (CircularTileSearch(tile, 9, SearchTileForStatue, t->index)) {
if (CircularTileSearch(&tile, 9, SearchTileForStatue, t->index)) {
SetBit(t->statues, _current_player); // Once found and built, "inform" the Town
}
}