From 1e879527d313ee95f23f15964a3c7099bed4e0b6 Mon Sep 17 00:00:00 2001 From: s0600204 Date: Tue, 28 Nov 2017 10:22:12 +0000 Subject: [PATCH] Fix a redeclaration error with 9504f5c36a. Reported by: @minohaka This was SVN commit r20548. --- binaries/data/mods/public/maps/random/rmgen/wall_builder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 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 44c999407e..9fcc1d6c84 100644 --- a/binaries/data/mods/public/maps/random/rmgen/wall_builder.js +++ b/binaries/data/mods/public/maps/random/rmgen/wall_builder.js @@ -1019,9 +1019,9 @@ function placeGenericFortress(centerX, centerY, radius, playerId, style, irregul angle - Math.PI / 2 + wallStyles[style][wallElement].angle); // Place tower - let startX = centerX + bestPointDerivation[(pointIndex + bestPointDerivation.length - 1) % bestPointDerivation.length][0]; - let startY = centerY + bestPointDerivation[(pointIndex + bestPointDerivation.length - 1) % bestPointDerivation.length][1]; - let angle = getAngle(startX, startY, targetX, targetY); + startX = centerX + bestPointDerivation[(pointIndex + bestPointDerivation.length - 1) % bestPointDerivation.length][0]; + startY = centerY + bestPointDerivation[(pointIndex + bestPointDerivation.length - 1) % bestPointDerivation.length][1]; + angle = getAngle(startX, startY, targetX, targetY); placeObject( centerX + bestPointDerivation[pointIndex][0], centerY + bestPointDerivation[pointIndex][1],