mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Merge pull request #3051 from Laserlicht/name_change
possibility to change name in lobby
This commit is contained in:
@@ -465,6 +465,14 @@ void CServerHandler::setPlayer(PlayerColor color) const
|
||||
sendLobbyPack(lsp);
|
||||
}
|
||||
|
||||
void CServerHandler::setPlayerName(PlayerColor color, const std::string & name) const
|
||||
{
|
||||
LobbySetPlayerName lspn;
|
||||
lspn.color = color;
|
||||
lspn.name = name;
|
||||
sendLobbyPack(lspn);
|
||||
}
|
||||
|
||||
void CServerHandler::setPlayerOption(ui8 what, int32_t value, PlayerColor player) const
|
||||
{
|
||||
LobbyChangePlayerOption lcpo;
|
||||
|
||||
Reference in New Issue
Block a user