(svn r10106) -Fix (r10098): there's always a compiler complaining about something...
authorrubidium
Mon, 11 Jun 2007 19:29:42 +0000
changeset 7362 4e2ac4d15263
parent 7361 8314452833ad
child 7363 9f2d21c77592
(svn r10106) -Fix (r10098): there's always a compiler complaining about something...
src/ai/default/default.cpp
--- a/src/ai/default/default.cpp	Mon Jun 11 18:49:55 2007 +0000
+++ b/src/ai/default/default.cpp	Mon Jun 11 19:29:42 2007 +0000
@@ -654,7 +654,7 @@
 
 	/* 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;