bridge_gui.c
changeset 3491 35d747bb5e82
parent 3477 4a686a43af8a
child 4344 7e123fec5b0b
equal deleted inserted replaced
3490:d53bc3e794bd 3491:35d747bb5e82
   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