equal
deleted
inserted
replaced
126 |
126 |
127 errmsg = INVALID_STRING_ID; |
127 errmsg = INVALID_STRING_ID; |
128 |
128 |
129 // only query bridge building possibility once, result is the same for all bridges! |
129 // only query bridge building possibility once, result is the same for all bridges! |
130 // returns CMD_ERROR on failure, and price on success |
130 // returns CMD_ERROR on failure, and price on success |
131 ret = DoCommandByTile(end, start, (bridge_type << 8), DC_AUTO | DC_QUERY_COST, CMD_BUILD_BRIDGE); |
131 ret = DoCommand(end, start, (bridge_type << 8), DC_AUTO | DC_QUERY_COST, CMD_BUILD_BRIDGE); |
132 |
132 |
133 if (CmdFailed(ret)) { |
133 if (CmdFailed(ret)) { |
134 errmsg = _error_message; |
134 errmsg = _error_message; |
135 } else { |
135 } else { |
136 // check which bridges can be built |
136 // check which bridges can be built |