fix last fort not facing left
authorsheepluva
Tue, 26 Apr 2016 15:15:12 +0200
changeset 11706 863e1a75ec99
parent 11705 4b2179d9516c
child 11707 ecbf5e6c2c37
fix last fort not facing left
hedgewars/uLand.pas
--- a/hedgewars/uLand.pas	Tue Apr 26 14:41:56 2016 +0200
+++ b/hedgewars/uLand.pas	Tue Apr 26 15:15:12 2016 +0200
@@ -377,7 +377,7 @@
     mirror:= (GetRandom(2) = 0);
     // make first/last fort face inwards
     if WorldEdge <> weWrap then
-        mirror:= (i <> 0) and (mirror or (i = ClansCount));
+        mirror:= (i <> 0) and (mirror or (i = ClansCount - 1));
 
     if mirror then
         begin