Changeset - r22465:20da188dc9bb
[Not reviewed]
master
0 1 0
frosch - 8 years ago 2016-10-30 18:04:20
frosch@openttd.org
(svn r27672) -Doc [FS#6489]: Fix comment. (Yho)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/vehicle_gui.cpp
Show inline comments
 
@@ -2361,26 +2361,26 @@ static const uint32 _vehicle_command_tra
 
		CMD_CLONE_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_BUY_SHIP),
 
		CMD_CLONE_VEHICLE | CMD_MSG(STR_ERROR_CAN_T_BUY_AIRCRAFT)
 
	},
 
	{ // VCT_CMD_TURN_AROUND
 
		CMD_REVERSE_TRAIN_DIRECTION | CMD_MSG(STR_ERROR_CAN_T_REVERSE_DIRECTION_TRAIN),
 
		CMD_TURN_ROADVEH            | CMD_MSG(STR_ERROR_CAN_T_MAKE_ROAD_VEHICLE_TURN),
 
		0xffffffff, // invalid for ships
 
		0xffffffff  // invalid for aircrafts
 
	},
 
};
 

	
 
/**
 
 * This is the Callback method after the cloning attempt of a vehicle
 
 * @param result the result of the cloning command
 
 * This is the Callback method after attempting to start/stop a vehicle
 
 * @param result the result of the start/stop command
 
 * @param tile unused
 
 * @param p1 vehicle ID
 
 * @param p2 unused
 
 */
 
void CcStartStopVehicle(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2)
 
{
 
	if (result.Failed()) return;
 

	
 
	const Vehicle *v = Vehicle::GetIfValid(p1);
 
	if (v == NULL || !v->IsPrimaryVehicle() || v->owner != _local_company) return;
 

	
 
	StringID msg = (v->vehstatus & VS_STOPPED) ? STR_VEHICLE_COMMAND_STOPPED : STR_VEHICLE_COMMAND_STARTED;
0 comments (0 inline, 0 general)