ClimbHome: Change misleading Seed assignment to nil value
authorWuzzy <Wuzzy2@mail.ru>
Sat, 02 Nov 2019 13:01:28 +0100
changeset 15506 5a30396f8fb2
parent 15505 5eda4d7056bc
child 15507 ad9fe7dc2ff7
ClimbHome: Change misleading Seed assignment to nil value This was "Seed = ClimbHome", but ClimbHome was a nil value. This code still worked as the engine interpreted the nil value as empty string. But it can be very misleading. This changeset makes the Seed assignment more explicit by assigning the empty string directly. The compability has been tested.
share/hedgewars/Data/Maps/ClimbHome/map.lua
share/hedgewars/Data/Missions/Challenge/ClimbHome.lua
--- a/share/hedgewars/Data/Maps/ClimbHome/map.lua	Fri Nov 01 23:35:01 2019 +0100
+++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua	Sat Nov 02 13:01:28 2019 +0100
@@ -94,7 +94,7 @@
     --This reduced startup time by only about 15% and looked ugly
     --EnableGameFlags(gfDisableLandObjects) 
     -- force seed instead.  Some themes will still be easier, but at least you won't luck out on the same theme
-    Seed = ClimbHome
+    Seed = ""
     -- Disable Sudden Death
     WaterRise = 0
     HealthDecrease = 0
--- a/share/hedgewars/Data/Missions/Challenge/ClimbHome.lua	Fri Nov 01 23:35:01 2019 +0100
+++ b/share/hedgewars/Data/Missions/Challenge/ClimbHome.lua	Sat Nov 02 13:01:28 2019 +0100
@@ -15,7 +15,7 @@
 function onGameInit()
     -- Ensure people get same map for same theme
     Theme = themes[GetRandom(#themes)+1]
-    Seed = ClimbHome
+    Seed = ""
     TurnTime = MAX_TURN_TIME
     EnableGameFlags(gfOneClanMode)
     DisableGameFlags(gfBottomBorder+gfBorder)