mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-16 00:55:11 +01:00
(svn r10106) -Fix (r10098): there's always a compiler complaining about something...
This commit is contained in:
parent
d0250f6108
commit
01593bdb6a
@ -654,7 +654,7 @@ static bool AiCheckIfRouteIsGood(Player *p, FoundRoute *fr, byte bitmask)
|
|||||||
|
|
||||||
/* Random value between 37 and 292. Low values are exponentially more likely
|
/* Random value between 37 and 292. Low values are exponentially more likely
|
||||||
* With 50% chance the value will be under 52 tiles */
|
* With 50% chance the value will be under 52 tiles */
|
||||||
int min_distance = 36 + 1 << (Random() % 9); // 0..8
|
int min_distance = 36 + (1 << (Random() % 9)); // 0..8
|
||||||
|
|
||||||
/* Make sure distance to closest station is < min_distance tiles. */
|
/* Make sure distance to closest station is < min_distance tiles. */
|
||||||
if (dist != 0xFFFF && dist > min_distance) return false;
|
if (dist != 0xFFFF && dist > min_distance) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user