Cockatrice/cockatrice/src/game
BruebachL ebeae48652
[Game] Preserve hand card order when restoring connection (#7266)
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>
2026-09-07 08:21:44 +02:00
..
board [Replay] Skip damage animations when skipping backward in replays (#7249) 2026-09-07 02:26:52 +02:00
player [Game] Preserve hand card order when restoring connection (#7266) 2026-09-07 08:21:44 +02:00
zones [Settings] Shuffle some settings around (#7084) 2026-08-08 22:27:41 +02:00
abstract_game.cpp [Replay] Refactor: extract replay playback logic into single class (#7060) 2026-08-02 19:22:33 -07:00
abstract_game.h [Replay] Refactor: extract replay playback logic into single class (#7060) 2026-08-02 19:22:33 -07:00
arrow_registry.cpp [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
arrow_registry.h [Game] [Arrows] Use arrowData/registry and generate unique server-side ids (#6973) 2026-06-07 21:11:02 +02:00
game.cpp [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
game.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
game_event_handler.cpp [Game] Prevent spectator duplication when replaying joined events (#7248) 2026-09-07 01:57:35 +02:00
game_event_handler.h [Networking] Doxygen (#7030) 2026-07-27 11:27:00 +02:00
game_meta_info.cpp Removed unused fields in GameMetaInfo and GameState (#6142) 2025-09-15 10:22:11 +02:00
game_meta_info.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
game_state.cpp [Game] Fix game timer starting twice, not stopping and not resetting correctly. (#6177) 2025-09-26 19:28:07 +02:00
game_state.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
phase.cpp add phase to delete arrows in to protocol (#6159) 2025-11-26 09:16:10 -05:00
phase.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
replay.cpp [Replay] Refactor: extract replay playback logic into single class (#7060) 2026-08-02 19:22:33 -07:00
replay.h [Replay] Refactor: extract replay playback logic into single class (#7060) 2026-08-02 19:22:33 -07:00