This commit is contained in:
Arisotura
2023-09-14 18:33:25 +02:00
parent a5b4fc2517
commit a571837604

View File

@ -348,7 +348,7 @@ void LANDialog::doUpdatePlayerList()
LAN::Player* player = &playerList[i]; LAN::Player* player = &playerList[i];
if (player->Status == 0) break; if (player->Status == 0) break;
QString id = QString("%0").arg(player->ID+1); QString id = QString("%0/%1").arg(player->ID+1).arg(maxPlayers);
model->item(i, 0)->setText(id); model->item(i, 0)->setText(id);
QString name = player->Name; QString name = player->Name;
@ -365,7 +365,7 @@ void LANDialog::doUpdatePlayerList()
if (i == myPlayerID) if (i == myPlayerID)
{ {
model->item(i, 3)->setText(""); model->item(i, 3)->setText("-");
model->item(i, 4)->setText("(local)"); model->item(i, 4)->setText("(local)");
} }
else else
@ -377,7 +377,7 @@ void LANDialog::doUpdatePlayerList()
// * we make an exception for the host -- the player list is issued by the host, so the host IP would be 127.0.0.1 // * we make an exception for the host -- the player list is issued by the host, so the host IP would be 127.0.0.1
// * for the same reason, the host can't know its own IP, so for the current player we force it to 127.0.0.1 // * for the same reason, the host can't know its own IP, so for the current player we force it to 127.0.0.1
u32 ip; u32 ip;
if (player->Status == 1) if (player->Status == 2)
ip = hostAddress; ip = hostAddress;
else else
ip = player->Address; ip = player->Address;