summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-11 19:29:42 +0000
committerrubidium <rubidium@openttd.org>2007-06-11 19:29:42 +0000
commit01593bdb6ae3c3ce2fd190595c17c845df693b3c (patch)
tree5021e414be1b8da31b8048b68ba0632f4cb941bf /src/ai
parentd0250f6108d5f882ced1d5dff47354b41ca0c694 (diff)
downloadopenttd-01593bdb6ae3c3ce2fd190595c17c845df693b3c.tar.xz
(svn r10106) -Fix (r10098): there's always a compiler complaining about something...
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/default/default.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index 1394158e6..d50da8ed8 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -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
* 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. */
if (dist != 0xFFFF && dist > min_distance) return false;