fix: Hex Wars - terrain wird nach Explosion gespeichert
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user