[UI] Remove @ from playerName since only the auto complete list cares about it.

Took 5 minutes

Took 37 seconds
This commit is contained in:
Lukas Brübach 2025-10-01 11:28:17 +02:00
parent bea8c3dbec
commit d6d982391a

View file

@ -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);