[Player] Pull handVisible out of player_info and let graphics_item just determine this on its own. (#6911)

Took 12 minutes


Took 15 seconds

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2026-05-19 12:10:19 +02:00 committed by GitHub
parent 7a5b2e9f0e
commit af2f888293
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 20 deletions

View file

@ -1,7 +1,7 @@
#include "player_info.h"
PlayerInfo::PlayerInfo(const ServerInfo_User &info, int _id, bool _local, bool _judge)
: id(_id), local(_local), judge(_judge), handVisible(false)
: id(_id), local(_local), judge(_judge)
{
userInfo = new ServerInfo_User;
userInfo->CopyFrom(info);