mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
This commit is contained in:
committed by
Michał Janiszewski
parent
eca13b99ed
commit
f69c95f907
@@ -540,8 +540,13 @@ int32_t game_do_command_p(
|
||||
void game_log_multiplayer_command(int command, const int* eax, const int* ebx, const int* ecx, int* edx, int* edi, int* ebp)
|
||||
{
|
||||
// Get player name
|
||||
const char* player_name = "localhost";
|
||||
|
||||
int player_index = network_get_player_index(game_command_playerid);
|
||||
const char* player_name = network_get_player_name(player_index);
|
||||
if (player_index != -1)
|
||||
{
|
||||
player_name = network_get_player_name(player_index);
|
||||
}
|
||||
|
||||
char log_msg[256];
|
||||
if (command == GAME_COMMAND_CHEAT)
|
||||
|
||||
Reference in New Issue
Block a user