fix: Hex Wars - terrain wird nach Explosion gespeichert

This commit is contained in:
2026-06-28 17:20:27 +02:00
parent 61bed6236c
commit b914046994

View File

@@ -429,9 +429,9 @@ router.post('/:id/move', authenticate, (req, res) => {
} }
db.prepare(` 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=? 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 // Pushover
if (status === 'finished') { if (status === 'finished') {