From b711dd48ca61d4d30746b69a26e0ad4637211728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Sun, 22 Jul 2018 22:49:02 +0200 Subject: [PATCH] WIP --- src/core/Battle.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/Battle.ts b/src/core/Battle.ts index fca8c22..5bcfcfb 100644 --- a/src/core/Battle.ts +++ b/src/core/Battle.ts @@ -303,7 +303,8 @@ module TK.SpaceTac { let side = -1; fleet.ships.forEach(ship => { - ship.setArenaPosition(loc.x, loc.y + side * offset * spacing); + let iloc = this.grid.snap({ x: loc.x, y: loc.y + side * offset * spacing }); + ship.setArenaPosition(iloc.x, iloc.y); ship.setArenaFacingAngle(facing_angle); if (side == -1) {