share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua
changeset 12093 0d6e0ed36c9e
parent 12092 9fe7eb1f7df2
child 12207 2de020695c20
equal deleted inserted replaced
12092:9fe7eb1f7df2 12093:0d6e0ed36c9e
  1557 
  1557 
  1558 	Explosives = 0
  1558 	Explosives = 0
  1559 	MinesNum = 0
  1559 	MinesNum = 0
  1560 
  1560 
  1561 	EnableGameFlags(gfInfAttack)
  1561 	EnableGameFlags(gfInfAttack)
       
  1562 	-- This is a hack to make sure all girder/rubber placement is handled by Construction Mode to overwrite the default behaviour
       
  1563 	SetMaxBuildDistance(1)
  1562 
  1564 
  1563 	fortMode = MapGen == mgForts
  1565 	fortMode = MapGen == mgForts
  1564 
  1566 
  1565 	-- if there are forts, let engine place the hogs on them
  1567 	-- if there are forts, let engine place the hogs on them
  1566 	if fortMode then
  1568 	if fortMode then