mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-27 11:28:59 -05:00
When a player restores connection to a game, the client rebuilds each zone from the cards the server sends in the game state. Non-coordinate zones (hand, piles, stack) report x == 0 on every card, so inserting each rebuilt card at that coordinate reversed the received order one card at a time. Append rebuilt cards in the order they arrive for zones without coordinates; coordinate-based zones (table) keep using x/y. Fixes #2759 Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>