File diff r13747:a8fc5e526175 → r13748:140a77305928
src/waypoint_cmd.cpp
Show inline comments
 
@@ -316,13 +316,13 @@ CommandCost CmdBuildRailWaypoint(TileInd
 

	
 
			DeallocateSpecFromStation(wp, old_specindex);
 
			YapfNotifyTrackLayoutChange(tile, AxisToTrack(axis));
 
		}
 
	}
 

	
 
	return CommandCost(EXPENSES_CONSTRUCTION, count * _price[PR_BUILD_DEPOT_TRAIN]);
 
	return CommandCost(EXPENSES_CONSTRUCTION, count * _price[PR_BUILD_WAYPOINT_RAIL]);
 
}
 

	
 
/** Build a buoy.
 
 * @param tile tile where to place the bouy
 
 * @param flags operation to perform
 
 * @param p1 unused
 
@@ -363,13 +363,13 @@ CommandCost CmdBuildBuoy(TileIndex tile,
 
		MakeBuoy(tile, wp->index, GetWaterClass(tile));
 

	
 
		wp->UpdateVirtCoord();
 
		InvalidateWindowData(WC_WAYPOINT_VIEW, wp->index);
 
	}
 

	
 
	return CommandCost(EXPENSES_CONSTRUCTION, _price[PR_BUILD_STATION_DOCK]);
 
	return CommandCost(EXPENSES_CONSTRUCTION, _price[PR_BUILD_WAYPOINT_BUOY]);
 
}
 

	
 
/**
 
 * Remove a buoy
 
 * @param tile TileIndex been queried
 
 * @param flags operation to perform
 
@@ -401,13 +401,13 @@ CommandCost RemoveBuoy(TileIndex tile, D
 
		wp->rect.AfterRemoveTile(wp, tile);
 

	
 
		wp->UpdateVirtCoord();
 
		wp->delete_ctr = 0;
 
	}
 

	
 
	return CommandCost(EXPENSES_CONSTRUCTION, _price[PR_CLEAR_STATION_TRUCK]);
 
	return CommandCost(EXPENSES_CONSTRUCTION, _price[PR_CLEAR_WAYPOINT_BUOY]);
 
}
 

	
 

	
 
static bool IsUniqueWaypointName(const char *name)
 
{
 
	const Waypoint *wp;