Fix maps variable in OfficialChallengeHashes not being global (caused error in normal Racer)
authorWuzzy <Wuzzy2@mail.ru>
Thu, 20 Sep 2018 13:07:21 +0200
changeset 13828 ced1e6ecaaad
parent 13827 4e5fcfc6f033
child 13830 1f15b0ee8e34
Fix maps variable in OfficialChallengeHashes not being global (caused error in normal Racer)
share/hedgewars/Data/Scripts/OfficialChallengeHashes.lua
share/hedgewars/Data/Scripts/OfficialChallenges.lua
--- a/share/hedgewars/Data/Scripts/OfficialChallengeHashes.lua	Wed Sep 19 10:23:01 2018 +0200
+++ b/share/hedgewars/Data/Scripts/OfficialChallengeHashes.lua	Thu Sep 20 13:07:21 2018 +0200
@@ -1,4 +1,4 @@
-local maps = {
+official_racer_maps = {
     ["Border,60526986531,838018718"] = "Racer Challenge #1"
     , ["Border,71022545335,-490229244"] = "Racer Challenge #2"
     , ["Border,40469748943,806689586"] = "Racer Challenge #3"
@@ -28,4 +28,4 @@
     , ["Border,19662506742,-975391975"] = "Tech Racer #6"
     , ["Border,19662806736,-975391975"] = "Tech Racer #7"
     , ["Border,19663106730,-975391975"] = "Tech Racer #8"
-    }
+}
--- a/share/hedgewars/Data/Scripts/OfficialChallenges.lua	Wed Sep 19 10:23:01 2018 +0200
+++ b/share/hedgewars/Data/Scripts/OfficialChallenges.lua	Thu Sep 20 13:07:21 2018 +0200
@@ -28,6 +28,6 @@
         end
 
         --WriteLnToConsole(mapString)
-        return(maps[mapString])
+        return(official_racer_maps[mapString])
     end
 end