Author: cazfi
Date: Mon Feb 22 12:41:07 2016
New Revision: 32022

URL: http://svn.gna.org/viewcvs/freeciv?rev=32022&view=rev
Log:
Fixed placement of the "Highest Peak" map label on supplied rulesets.

Report and initial patch by taka <taka>

See bug #24436

Modified:
    trunk/data/civ2civ3/script.lua
    trunk/data/classic/script.lua
    trunk/data/sandbox/script.lua

Modified: trunk/data/civ2civ3/script.lua
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/civ2civ3/script.lua?rev=32022&r1=32021&r2=32022&view=diff
==============================================================================
--- trunk/data/civ2civ3/script.lua      (original)
+++ trunk/data/civ2civ3/script.lua      Mon Feb 22 12:41:07 2016
@@ -46,7 +46,7 @@
 
   -- Decide if a label should be included and, in case it should, where.
   if random(1, 100) <= 75 then
-    selected_mountains = random(1, mountains)
+    selected_mountain = random(1, mountains)
   end
   if random(1, 100) <= 75 then
     selected_ocean = random(1, deep_oceans)

Modified: trunk/data/classic/script.lua
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/classic/script.lua?rev=32022&r1=32021&r2=32022&view=diff
==============================================================================
--- trunk/data/classic/script.lua       (original)
+++ trunk/data/classic/script.lua       Mon Feb 22 12:41:07 2016
@@ -46,7 +46,7 @@
 
   -- Decide if a label should be included and, in case it should, where.
   if random(1, 100) <= 75 then
-    selected_mountains = random(1, mountains)
+    selected_mountain = random(1, mountains)
   end
   if random(1, 100) <= 75 then
     selected_ocean = random(1, deep_oceans)

Modified: trunk/data/sandbox/script.lua
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/sandbox/script.lua?rev=32022&r1=32021&r2=32022&view=diff
==============================================================================
--- trunk/data/sandbox/script.lua       (original)
+++ trunk/data/sandbox/script.lua       Mon Feb 22 12:41:07 2016
@@ -46,7 +46,7 @@
 
   -- Decide if a label should be included and, in case it should, where.
   if random(1, 100) <= 75 then
-    selected_mountains = random(1, mountains)
+    selected_mountain = random(1, mountains)
   end
   if random(1, 100) <= 75 then
     selected_ocean = random(1, deep_oceans)


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to