mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Fix a redeclaration error with 9504f5c36a.
Reported by: @minohaka This was SVN commit r20548.
This commit is contained in:
parent
9504f5c36a
commit
1e879527d3
1 changed files with 3 additions and 3 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Reference in a new issue