From 06f9baac62788484331d6d5aa89d1916192b8a29 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 11 Jun 2007 19:29:42 +0000 Subject: (svn r10106) -Fix (r10098): there's always a compiler complaining about something... --- src/ai/default/default.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2