From b9140469945f2fcf09fc04ec8c8a352813f2b4e3 Mon Sep 17 00:00:00 2001 From: Dicken Date: Sun, 28 Jun 2026 17:20:27 +0200 Subject: [PATCH] fix: Hex Wars - terrain wird nach Explosion gespeichert --- backend/src/tools/gebietseroberung/routes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/tools/gebietseroberung/routes.js b/backend/src/tools/gebietseroberung/routes.js index b664d26..c74d3ae 100644 --- a/backend/src/tools/gebietseroberung/routes.js +++ b/backend/src/tools/gebietseroberung/routes.js @@ -429,9 +429,9 @@ router.post('/:id/move', authenticate, (req, res) => { } db.prepare(` - UPDATE geo_games SET grid=?, current_turn=?, status=?, winner_id=?, move_count=?, last_event=?, + UPDATE geo_games SET grid=?, terrain=?, current_turn=?, status=?, winner_id=?, move_count=?, last_event=?, owner_head=?, opp_head=?, updated_at=datetime('now','localtime') WHERE id=? - `).run(JSON.stringify(grid), nextTurn, status, winnerId, newMoves, lastEvent, newOwnerHead, newOppHead, game.id); + `).run(JSON.stringify(grid), JSON.stringify(terrain), nextTurn, status, winnerId, newMoves, lastEvent, newOwnerHead, newOppHead, game.id); // Pushover if (status === 'finished') {