1
0
forked from mirrors/0ad

Updates random map wall_builder with correct gate sizes, patch by FeXoR. Fixes #1576

This was SVN commit r12278.
This commit is contained in:
historic_bruno
2012-08-04 19:29:45 +00:00
parent 2eb49be1a3
commit 347c7d45cc
@@ -126,12 +126,7 @@ for (var style in wallScaleByType)
wallStyles[style]["wallMedium"] = new WallElement("wall", "structures/" + style + "_wall_medium", 0*PI, 4*wallScaleByType[style]);
wallStyles[style]["wallLong"] = new WallElement("wallLong", "structures/" + style + "_wall_long", 0*PI, 6*wallScaleByType[style]);
// Gate and entrance wall elements
if (style == "cart")
var gateWidth = 3.5*wallScaleByType[style];
else if (style == "brit" || style == "celt" || style == "gaul")
var gateWidth = 4*wallScaleByType[style];
else
var gateWidth = 6*wallScaleByType[style];
var gateWidth = 6*wallScaleByType[style];
wallStyles[style]["gate"] = new WallElement("gate", "structures/" + style + "_wall_gate", 0*PI, gateWidth);
wallStyles[style]["entry"] = new WallElement("entry", undefined, 0*PI, gateWidth);
wallStyles[style]["entryTower"] = new WallElement("entryTower", "structures/" + civ + "_defense_tower", PI, gateWidth, -4*wallScaleByType[style]);