mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 11:03:54 -07: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:
parent
bea8c3dbec
commit
c33106eab4
1 changed files with 2 additions and 2 deletions
|
|
@ -248,8 +248,8 @@ void GameEventHandler::eventGameStateChanged(const Event_GameStateChanged &event
|
||||||
const ServerInfo_Player &playerInfo = event.player_list(i);
|
const ServerInfo_Player &playerInfo = event.player_list(i);
|
||||||
const ServerInfo_PlayerProperties &prop = playerInfo.properties();
|
const ServerInfo_PlayerProperties &prop = playerInfo.properties();
|
||||||
const int playerId = prop.player_id();
|
const int playerId = prop.player_id();
|
||||||
QString playerName = "@" + QString::fromStdString(prop.user_info().name());
|
QString playerName = QString::fromStdString(prop.user_info().name());
|
||||||
emit addPlayerToAutoCompleteList(playerName);
|
emit addPlayerToAutoCompleteList("@" + playerName);
|
||||||
if (prop.spectator()) {
|
if (prop.spectator()) {
|
||||||
if (!game->getPlayerManager()->getSpectators().contains(playerId)) {
|
if (!game->getPlayerManager()->getSpectators().contains(playerId)) {
|
||||||
game->getPlayerManager()->addSpectator(playerId, prop);
|
game->getPlayerManager()->addSpectator(playerId, prop);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue