mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
Add player hash to server log message on join (#7946)
This commit is contained in:
committed by
Michał Janiszewski
parent
18307e3841
commit
102a2ee234
@@ -1943,6 +1943,9 @@ void Network::Server_Client_Joined(const char* name, const std::string& keyhash,
|
||||
Server_Send_OBJECTS(connection, objects);
|
||||
|
||||
// Log player joining event
|
||||
std::string playerNameHash = player->Name + " (" + keyhash + ")";
|
||||
player_name = (const char*)playerNameHash.c_str();
|
||||
format_string(text, 256, STR_MULTIPLAYER_PLAYER_HAS_JOINED_THE_GAME, &player_name);
|
||||
AppendServerLog(text);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user