mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 03:53:07 +01:00
implement cheats over multiplayer
This commit is contained in:
@@ -856,7 +856,6 @@ void Network::UpdateClient()
|
||||
if (error == 0) {
|
||||
status = NETWORK_STATUS_CONNECTED;
|
||||
server_connection.ResetLastPacketTime();
|
||||
cheats_reset();
|
||||
Client_Send_AUTH(gConfigNetwork.player_name, "");
|
||||
window_network_status_open("Authenticating...");
|
||||
}
|
||||
@@ -1219,6 +1218,7 @@ void Network::LoadGroups()
|
||||
user->ToggleActionPermission(15); // Kick Player
|
||||
user->ToggleActionPermission(16); // Modify Groups
|
||||
user->ToggleActionPermission(17); // Set Player Group
|
||||
user->ToggleActionPermission(18); // Cheat
|
||||
user->id = 2;
|
||||
group_list.push_back(std::move(user));
|
||||
SetDefaultGroup(1);
|
||||
@@ -2029,9 +2029,9 @@ rct_xyz16 network_get_player_last_action_coord(unsigned int index)
|
||||
return gNetwork.player_list[index]->last_action_coord;
|
||||
}
|
||||
|
||||
void network_set_player_last_action_coord(int index, rct_xyz16 coord)
|
||||
void network_set_player_last_action_coord(unsigned int index, rct_xyz16 coord)
|
||||
{
|
||||
if (index >= 0 && index < gNetwork.player_list.size()) {
|
||||
if (index < gNetwork.player_list.size()) {
|
||||
gNetwork.player_list[index]->last_action_coord = coord;
|
||||
}
|
||||
}
|
||||
@@ -2345,7 +2345,7 @@ void network_add_player_money_spent(unsigned int index, money32 cost) { }
|
||||
int network_get_player_last_action(unsigned int index, int time) { return -999; }
|
||||
void network_set_player_last_action(unsigned int index, int command) { }
|
||||
rct_xyz16 network_get_player_last_action_coord(unsigned int index) { return {0, 0, 0}; }
|
||||
void network_set_player_last_action_coord(int index, rct_xyz16 coord) { }
|
||||
void network_set_player_last_action_coord(unsigned int index, rct_xyz16 coord) { }
|
||||
unsigned int network_get_player_commands_ran(unsigned int index) { return 0; }
|
||||
int network_get_player_index(uint8 id) { return -1; }
|
||||
uint8 network_get_player_group(unsigned int index) { return 0; }
|
||||
|
||||
Reference in New Issue
Block a user