mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-12 15:49:28 -08:00
[UI] Remove @ from playerName since only the auto complete list cares about it. (#6205)
Took 5 minutes Took 37 seconds Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
@@ -248,8 +248,8 @@ void GameEventHandler::eventGameStateChanged(const Event_GameStateChanged &event
|
||||
const ServerInfo_Player &playerInfo = event.player_list(i);
|
||||
const ServerInfo_PlayerProperties &prop = playerInfo.properties();
|
||||
const int playerId = prop.player_id();
|
||||
QString playerName = "@" + QString::fromStdString(prop.user_info().name());
|
||||
emit addPlayerToAutoCompleteList(playerName);
|
||||
QString playerName = QString::fromStdString(prop.user_info().name());
|
||||
emit addPlayerToAutoCompleteList("@" + playerName);
|
||||
if (prop.spectator()) {
|
||||
if (!game->getPlayerManager()->getSpectators().contains(playerId)) {
|
||||
game->getPlayerManager()->addSpectator(playerId, prop);
|
||||
|
||||
Reference in New Issue
Block a user