summaryrefslogtreecommitdiff
path: root/src/bridge_gui.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-10-03 17:15:48 +0200
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commit549caca39cebc8c988f4e51d79d353cab4646d58 (patch)
tree6739fb0721fae36d6fc58eabd4be642062386dee /src/bridge_gui.cpp
parentb6933a2ebdf66c5fb23b2226d3ce07d71426d7d2 (diff)
downloadopenttd-549caca39cebc8c988f4e51d79d353cab4646d58.tar.xz
Codechange: Move command arguments to the back of the networked command function calls.
Diffstat (limited to 'src/bridge_gui.cpp')
-rw-r--r--src/bridge_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp
index 9e6fc4eee..2aef088e3 100644
--- a/src/bridge_gui.cpp
+++ b/src/bridge_gui.cpp
@@ -117,8 +117,8 @@ private:
case TRANSPORT_ROAD: _last_roadbridge_type = this->bridges->at(i).index; break;
default: break;
}
- DoCommandP(this->end_tile, this->start_tile, this->type | this->bridges->at(i).index,
- CMD_BUILD_BRIDGE | CMD_MSG(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE), CcBuildBridge);
+ DoCommandP(CMD_BUILD_BRIDGE | CMD_MSG(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE), CcBuildBridge,
+ this->end_tile, this->start_tile, this->type | this->bridges->at(i).index);
}
/** Sort the builable bridges */
@@ -383,7 +383,7 @@ void ShowBuildBridgeWindow(TileIndex start, TileIndex end, TransportType transpo
default: break; // water ways and air routes don't have bridge types
}
if (_ctrl_pressed && CheckBridgeAvailability(last_bridge_type, bridge_len).Succeeded()) {
- DoCommandP(end, start, type | last_bridge_type, CMD_BUILD_BRIDGE | CMD_MSG(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE), CcBuildBridge);
+ DoCommandP(CMD_BUILD_BRIDGE | CMD_MSG(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE), CcBuildBridge, end, start, type | last_bridge_type);
return;
}