Tech racer maps detection
authorunc0rr
Sat, 13 Feb 2016 12:32:08 +0300
changeset 11551 59bf29b4f523
parent 11550 86528b0cd491
child 11552 2bbbe9cb2980
Tech racer maps detection
share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
share/hedgewars/Data/Scripts/OfficialChallenges.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Sat Feb 13 00:36:38 2016 +0300
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Sat Feb 13 12:32:08 2016 +0300
@@ -692,9 +692,10 @@
 function onGameInit()
     if mapID == nil then
         mapID = 2 + GetRandom(7)
-        addHashData(mapID)
     end
 
+    addHashData(mapID)
+
 		Theme = "Cave"
 
 		MapGen = mgDrawn
--- a/share/hedgewars/Data/Scripts/OfficialChallenges.lua	Sat Feb 13 00:36:38 2016 +0300
+++ b/share/hedgewars/Data/Scripts/OfficialChallenges.lua	Sat Feb 13 12:32:08 2016 +0300
@@ -18,6 +18,15 @@
     , ["60906776802,M-1389184823Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #17"
     , ["Border,70774747774,M-534640804Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #18"
     , ["Border,50512019610,M-1839546856Scripts/Multiplayer/Racer.lua"] = "Racer Challenge #19"
+-- tech racer
+    , ["Border,19661006772,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #1"
+    , ["Border,19661306766,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #2"
+    , ["Border,19661606760,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #3"
+    , ["Border,19661906754,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #4"
+    , ["Border,19662206748,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #5"
+    , ["Border,19662506742,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #6"
+    , ["Border,19662806736,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #7"
+    , ["Border,19663106730,M-975391975Scripts/Multiplayer/TechRacer.lua"] = "Tech Racer #8"
     }
 
 -- modified Adler hash