# HG changeset patch # User Wuzzy # Date 1572696088 -3600 # Node ID 5a30396f8fb2f86654ce193d6067eaf412620bcc # Parent 5eda4d7056bcc31ef116475a22498fd1e752c47f 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. diff -r 5eda4d7056bc -r 5a30396f8fb2 share/hedgewars/Data/Maps/ClimbHome/map.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 diff -r 5eda4d7056bc -r 5a30396f8fb2 share/hedgewars/Data/Missions/Challenge/ClimbHome.lua --- 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)