From 347c7d45cce856e406537fa6b2eb98cf44a7b8cf Mon Sep 17 00:00:00 2001 From: historic_bruno Date: Sat, 4 Aug 2012 19:29:45 +0000 Subject: [PATCH] Updates random map wall_builder with correct gate sizes, patch by FeXoR. Fixes #1576 This was SVN commit r12278. --- .../data/mods/public/maps/random/rmgen/wall_builder.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/binaries/data/mods/public/maps/random/rmgen/wall_builder.js b/binaries/data/mods/public/maps/random/rmgen/wall_builder.js index 44e1c673ad..d390d2ca6a 100644 --- a/binaries/data/mods/public/maps/random/rmgen/wall_builder.js +++ b/binaries/data/mods/public/maps/random/rmgen/wall_builder.js @@ -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]);