1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Remove trailing whitespace in sources

This commit is contained in:
Michał Janiszewski
2016-11-13 20:17:49 +01:00
parent 9fed68bf6f
commit 3f7fd56328
92 changed files with 359 additions and 359 deletions

View File

@@ -1722,7 +1722,7 @@ void Network::Server_Handle_GAMECMD(NetworkConnection& connection, NetworkPacket
int commandCommand = args[4];
int ticks = SDL_GetTicks(); //tick count is different by time last_action_time is set, keep same value.
// Check if player's group permission allows command to run
NetworkGroup* group = GetGroupByID(connection.Player->group);
if (!group || (group && !group->CanPerformCommand(commandCommand))) {
@@ -1730,7 +1730,7 @@ void Network::Server_Handle_GAMECMD(NetworkConnection& connection, NetworkPacket
return;
}
// In case someone modifies the code / memory to enable cluster build,
// require a small delay in between placing scenery to provide some security, as
// require a small delay in between placing scenery to provide some security, as
// cluster mode is a for loop that runs the place_scenery code multiple times.
if (commandCommand == GAME_COMMAND_PLACE_SCENERY) {
if ((ticks - connection.Player->last_action_time) < 20) {
@@ -2380,7 +2380,7 @@ int network_can_perform_action(unsigned int groupindex, unsigned int index)
return gNetwork.group_list[groupindex]->CanPerformAction(index);
}
int network_can_perform_command(unsigned int groupindex, unsigned int index)
int network_can_perform_command(unsigned int groupindex, unsigned int index)
{
return gNetwork.group_list[groupindex]->CanPerformCommand(index);
}