1
0
Fork 0

(svn r14416) -Fix (r10074)(r10517): substraction was done the other way in the 'nearest land/water' check (~25% performance penalty)

release/0.7
smatz 2008-09-29 18:34:05 +00:00
parent c631c26a9f
commit e65771f25c
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ static uint GetClosestWaterDistance(TileIndex tile, bool water)
} else if (TileX(tile) < TileX(t)) {
/* We can safely skip this many tiles; up to here all tiles have a
* higher or equal distance than the best distance */
t += max(best_dist - dist, 0);
t += dist - best_dist;
continue;
}
}