From 34c405696c0b7d43f4b5498ad6978dff165db7c4 Mon Sep 17 00:00:00 2001 From: DJ1TJOO Date: Fri, 26 Nov 2021 18:41:06 +0100 Subject: [PATCH] Removed not needed variables --- src/js/game/systems/belt_underlays.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/js/game/systems/belt_underlays.js b/src/js/game/systems/belt_underlays.js index cd9199cb..a043c297 100644 --- a/src/js/game/systems/belt_underlays.js +++ b/src/js/game/systems/belt_underlays.js @@ -185,10 +185,7 @@ export class BeltUnderlaysSystem extends GameSystemWithFilter { } const staticComp = entity.components.StaticMapEntity; - const transformedPos = staticComp.localTileToWorld(underlayTile.pos); - const destX = transformedPos.x * globalConfig.tileSize; - const destY = transformedPos.y * globalConfig.tileSize; // Extract direction and angle const worldDirection = staticComp.localDirectionToWorld(underlayTile.direction);