Cockatrice/cockatrice/src/game/player
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
..
event_processing_options.h [Replay] Skip damage animations when skipping backward in replays (#7249) 2026-09-07 02:26:52 +02:00
player_actions.cpp [Settings] Shuffle some settings around (#7084) 2026-08-08 22:27:41 +02:00
player_actions.h [Card] Add facedown property to CardRelation (#6997) 2026-06-28 02:03:07 -07:00
player_event_handler.cpp [Replay] Skip damage animations when skipping backward in replays (#7249) 2026-09-07 02:26:52 +02:00
player_event_handler.h [Replay] Skip damage animations when skipping backward in replays (#7249) 2026-09-07 02:26:52 +02:00
player_info.cpp [Player] Pull handVisible out of player_info and let graphics_item just determine this on its own. (#6911) 2026-05-19 12:10:19 +02:00
player_info.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
player_logic.cpp [Game] Preserve hand card order when restoring connection (#7266) 2026-09-07 08:21:44 +02:00
player_logic.h [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
player_manager.cpp [Game] Prevent spectator duplication when replaying joined events (#7248) 2026-09-07 01:57:35 +02:00
player_manager.h [Game] Prevent spectator duplication when replaying joined events (#7248) 2026-09-07 01:57:35 +02:00