share/hedgewars/Data/Scripts/OfficialChallenges.lua
changeset 10211 f4c51ab8f46d
parent 10180 8d4bb51bf5cb
child 10213 e924d1935aa6
--- a/share/hedgewars/Data/Scripts/OfficialChallenges.lua	Thu Mar 20 17:14:25 2014 +0400
+++ b/share/hedgewars/Data/Scripts/OfficialChallenges.lua	Thu Mar 20 22:14:30 2014 +0400
@@ -1,11 +1,15 @@
 function detectMap()
     if RopePercent == 100 and MinesNum == 0 then
-        if LandDigest == "M838018718Scripts/Multiplayer/Racer.lua" then
-            return("Racer Challenge #1")
-        elseif LandDigest == "M-490229244Scripts/Multiplayer/Racer.lua" then
-            return("Racer Challenge #2")
-        elseif LandDigest == "M806689586Scripts/Multiplayer/Racer.lua" then
-            return("Racer Challenge #3")
+-- challenges with border
+        if GetGameFlag(gfBorder) then
+            if LandDigest == "M838018718Scripts/Multiplayer/Racer.lua" then
+                return("Racer Challenge #1")
+            elseif LandDigest == "M-490229244Scripts/Multiplayer/Racer.lua" then
+                return("Racer Challenge #2")
+            elseif LandDigest == "M806689586Scripts/Multiplayer/Racer.lua" then
+                return("Racer Challenge #3")
+        end
+-- challenges without border
         elseif LandDigest == "M-134869715Scripts/Multiplayer/Racer.lua" then
             return("Racer Challenge #4")
         end