make construction mode recognize fort maps too
authorsheepluva
Wed, 27 Apr 2016 18:08:48 +0200
changeset 11752 3182ee5be2b0
parent 11751 329ab1a0a750
child 11753 4a68030ee852
make construction mode recognize fort maps too
share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Wed Apr 27 17:54:36 2016 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua	Wed Apr 27 18:08:48 2016 +0200
@@ -1536,7 +1536,7 @@
 
 	EnableGameFlags(gfInfAttack)
 
-	fortMode = GetGameFlag(gfForts)
+	fortMode = (MapGen == mgForts) or GetGameFlag(gfForts)
 
 	-- if there are forts, let engine place the hogs on them
 	if fortMode then