Cockatrice/cockatrice/src/game_graphics/player
BruebachL 36f998e466
[Client] Fix pawn avatar cache key collision for players without a custom avatar (#4086) (#7264)
Player pawns are looked up in QPixmapCache under a key built from the
rendered size, user level, and the avatar pixmap's cacheKey(). A null
pixmap reports cacheKey() 0, so all players without a custom avatar
collided: the first pawn rendered for a given size and user level was
reused for the next one, showing the wrong player's pawn.

Extend the key with the rendered height, the lowercased privlevel
(matching UserLevelPixmapGenerator), and both pawn colors so that every
visually distinct pawn gets its own cache entry.

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-09-07 08:21:26 +02:00
..
menu [Game] Implement total toughness tally (#7252) 2026-09-06 01:46:37 -07:00
card_menu_action_type.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
player_area.cpp [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
player_area.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
player_dialogs.cpp Split trice_limits.h into dedicated headers (#7025) 2026-06-29 14:37:52 -07:00
player_dialogs.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
player_graphics_item.cpp [Replay] Skip damage animations when skipping backward in replays (#7249) 2026-09-07 02:26:52 +02:00
player_graphics_item.h [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
player_list_widget.cpp [Game] Prevent spectator duplication when replaying joined events (#7248) 2026-09-07 01:57:35 +02:00
player_list_widget.h [Game] Prevent spectator duplication when replaying joined events (#7248) 2026-09-07 01:57:35 +02:00
player_target.cpp [Client] Fix pawn avatar cache key collision for players without a custom avatar (#4086) (#7264) 2026-09-07 08:21:26 +02:00
player_target.h [Replay] Skip damage animations when skipping backward in replays (#7249) 2026-09-07 02:26:52 +02:00