Fix maps variable in OfficialChallengeHashes not being global (caused error in normal Racer)
--- 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