Change max hedgehog estimate for drawn map sizes 1-3
authorWuzzy <Wuzzy2@mail.ru>
Sat, 15 Jun 2019 12:09:12 +0200
changeset 15165 59c595191eba
parent 15164 794dc7237ca1
child 15166 d47122a0e4b4
Change max hedgehog estimate for drawn map sizes 1-3
hedgewars/uLand.pas
--- a/hedgewars/uLand.pas	Sat Jun 15 12:02:22 2019 +0200
+++ b/hedgewars/uLand.pas	Sat Jun 15 12:09:12 2019 +0200
@@ -285,7 +285,10 @@
 
 procedure GenDrawnMap;
 begin
-    if (cFeatureSize <= 6) then
+    if (cFeatureSize <= 3) then
+        // sizes 1-3 are identical
+        MaxHedgehogs:= 8
+    else if (cFeatureSize <= 6) then
         MaxHedgehogs:= 6 + (cFeatureSize-1) * 2
     else if (cFeatureSize < 11) then
         MaxHedgehogs:= 16 + (cFeatureSize-6) * 4