diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index cfd351ae88..c8011dc63d 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -601,21 +601,6 @@ void game_log_multiplayer_command(int command, const int* eax, const int* ebx, c format_string(log_msg, 256, STR_LOG_CHEAT_USED, args); network_append_server_log(log_msg); } - else if (command == GAME_COMMAND_CREATE_RIDE && *ebp == 1) - { // ebp is 1 if the command comes from ride_create method in ride.c, other calls send ride_entry instead of ride and wont - // work - // Get ride name - Ride* ride = get_ride(*edx); - char ride_name[128]; - format_string(ride_name, 128, ride->name, &ride->name_arguments); - - char* args[2] = { - (char*)player_name, - ride_name, - }; - format_string(log_msg, 256, STR_LOG_CREATE_RIDE, args); - network_append_server_log(log_msg); - } else if (command == GAME_COMMAND_DEMOLISH_RIDE && (*ebp == 1 || *ebp == 0)) { // ebp is 1 if command comes from ride window prompt, so we don't log "demolishing" ride previews // Get ride name @@ -630,9 +615,7 @@ void game_log_multiplayer_command(int command, const int* eax, const int* ebx, c format_string(log_msg, 256, STR_LOG_DEMOLISH_RIDE, args); network_append_server_log(log_msg); } - else if ( - command == GAME_COMMAND_SET_RIDE_APPEARANCE || command == GAME_COMMAND_SET_RIDE_VEHICLES - || command == GAME_COMMAND_SET_RIDE_SETTING) + else if (command == GAME_COMMAND_SET_RIDE_VEHICLES || command == GAME_COMMAND_SET_RIDE_SETTING) { // Get ride name int ride_index = *edx & 0xFF; @@ -660,66 +643,6 @@ void game_log_multiplayer_command(int command, const int* eax, const int* ebx, c network_append_server_log(log_msg); } - else if (command == GAME_COMMAND_SET_RIDE_STATUS) - { - // Get ride name - int ride_index = *edx & 0xFF; - Ride* ride = get_ride(ride_index); - char ride_name[128]; - format_string(ride_name, 128, ride->name, &ride->name_arguments); - - char* args[2] = { - (char*)player_name, - ride_name, - }; - - int status = *edx >> 8; - switch (status) - { - case 0: - format_string(log_msg, 256, STR_LOG_RIDE_STATUS_CLOSED, args); - break; - case 1: - format_string(log_msg, 256, STR_LOG_RIDE_STATUS_OPEN, args); - break; - case 2: - format_string(log_msg, 256, STR_LOG_RIDE_STATUS_TESTING, args); - break; - } - - network_append_server_log(log_msg); - } - else if (command == GAME_COMMAND_SET_RIDE_PRICE) - { - // Get ride name - int ride_index = *edx & 0xFF; - Ride* ride = get_ride(ride_index); - char ride_name[128]; - format_string(ride_name, 128, ride->name, &ride->name_arguments); - - // Format price - int price_args[1] = { *edi }; - char price_str[16]; - format_string(price_str, 16, STR_BOTTOM_TOOLBAR_CASH, price_args); - - // Log change in primary or secondary price - char* args[3] = { - (char*)player_name, - ride_name, - price_str, - }; - - if (*edx >> 8 == 0) - { - format_string(log_msg, 256, STR_LOG_RIDE_PRICE, args); - } - else if (*edx >> 8 == 1) - { - format_string(log_msg, 256, STR_LOG_RIDE_SECONDARY_PRICE, args); - } - - network_append_server_log(log_msg); - } else if (command == GAME_COMMAND_SET_PARK_OPEN) { // Log change in park open/close @@ -738,22 +661,6 @@ void game_log_multiplayer_command(int command, const int* eax, const int* ebx, c network_append_server_log(log_msg); } - else if (command == GAME_COMMAND_SET_PARK_ENTRANCE_FEE) - { - // Format price - int price_args[1] = { *edi }; - char price_str[16]; - format_string(price_str, 16, STR_BOTTOM_TOOLBAR_CASH, price_args); - - // Log change in park entrance fee - char* args[2] = { - (char*)player_name, - price_str, - }; - - format_string(log_msg, 256, STR_LOG_PARK_ENTRANCE_FEE, args); - network_append_server_log(log_msg); - } else if ( command == GAME_COMMAND_PLACE_SCENERY || command == GAME_COMMAND_PLACE_WALL || command == GAME_COMMAND_PLACE_LARGE_SCENERY || command == GAME_COMMAND_PLACE_BANNER) @@ -773,9 +680,7 @@ void game_log_multiplayer_command(int command, const int* eax, const int* ebx, c format_string(log_msg, 256, STR_LOG_PLACE_SCENERY, args); network_append_server_log(log_msg); } - else if ( - command == GAME_COMMAND_REMOVE_SCENERY || command == GAME_COMMAND_REMOVE_WALL - || command == GAME_COMMAND_REMOVE_LARGE_SCENERY || command == GAME_COMMAND_REMOVE_BANNER) + else if (command == GAME_COMMAND_REMOVE_BANNER) { uint8_t flags = *ebx & 0xFF; if (flags & GAME_COMMAND_FLAG_GHOST) @@ -794,8 +699,7 @@ void game_log_multiplayer_command(int command, const int* eax, const int* ebx, c else if ( command == GAME_COMMAND_SET_SCENERY_COLOUR || command == GAME_COMMAND_SET_WALL_COLOUR || command == GAME_COMMAND_SET_LARGE_SCENERY_COLOUR || command == GAME_COMMAND_SET_BANNER_COLOUR - || command == GAME_COMMAND_SET_BANNER_NAME || command == GAME_COMMAND_SET_SIGN_NAME - || command == GAME_COMMAND_SET_BANNER_STYLE || command == GAME_COMMAND_SET_SIGN_STYLE) + || command == GAME_COMMAND_SET_BANNER_STYLE) { // Log editing scenery char* args[1] = { @@ -851,14 +755,6 @@ void game_log_multiplayer_command(int command, const int* eax, const int* ebx, c format_string(log_msg, 256, STR_LOG_REMOVE_TRACK, args); network_append_server_log(log_msg); } - else if (command == GAME_COMMAND_PLACE_PEEP_SPAWN) - { - char* args[1] = { - (char*)player_name, - }; - format_string(log_msg, 256, STR_LOG_PLACE_PEEP_SPAWN, args); - network_append_server_log(log_msg); - } } void pause_toggle()