Fix handling of perlin mapgen
authorunc0rr
Tue, 06 Jan 2015 12:52:37 +0300
changeset 10779 d85fe0cb5df2
parent 10777 18afcfaa4d5a
child 10782 6feaf9a863dd
Fix handling of perlin mapgen
gameServer/EngineInteraction.hs
--- a/gameServer/EngineInteraction.hs	Tue Jan 06 12:12:34 2015 +0300
+++ b/gameServer/EngineInteraction.hs	Tue Jan 06 12:52:37 2015 +0300
@@ -119,7 +119,7 @@
             && Set.null (keys2 Set.\\ Map.keysSet prms)
             && (not . null . drop 41 $ scheme)
             && (not . null . tail $ prms Map.! "AMMO")
-        mapGenTypes = ["+rnd+", "+maze+", "+drawn+"]
+        mapGenTypes = ["+rnd+", "+maze+", "+drawn+", "+perlin+"]
         maybeScript = let s = head . fromMaybe ["Normal"] $ Map.lookup "SCRIPT" prms in if s == "Normal" then [] else [eml ["escript Scripts/Multiplayer/", s, ".lua"]]
         maybeMap = let m = mParams Map.! "MAP" in if m `elem` mapGenTypes then [] else [eml ["emap ", m]]
         scheme = tail $ prms Map.! "SCHEME"