File diff r8229:4262f8715f60 → r8230:33d57fce0ec2
src/waypoint.cpp
Show inline comments
 
@@ -163,8 +163,6 @@ CommandCost CmdBuildTrainWaypoint(TileIn
 
	Slope tileh;
 
	Axis axis;
 

	
 
	SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
 

	
 
	/* if custom gfx are used, make sure it is within bounds */
 
	if (p1 >= GetNumCustomStations(STAT_CLASS_WAYP)) return CMD_ERROR;
 

	
 
@@ -247,7 +245,7 @@ CommandCost CmdBuildTrainWaypoint(TileIn
 
		wp_auto_delete.Detach();
 
	}
 

	
 
	return CommandCost(_price.build_train_depot);
 
	return CommandCost(EXPENSES_CONSTRUCTION, _price.build_train_depot);
 
}
 

	
 
/**
 
@@ -299,7 +297,7 @@ CommandCost RemoveTrainWaypoint(TileInde
 
		YapfNotifyTrackLayoutChange(tile, track);
 
	}
 

	
 
	return CommandCost(_price.remove_train_depot);
 
	return CommandCost(EXPENSES_CONSTRUCTION, _price.remove_train_depot);
 
}
 

	
 
/**
 
@@ -312,7 +310,6 @@ CommandCost RemoveTrainWaypoint(TileInde
 
 */
 
CommandCost CmdRemoveTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
 
{
 
	SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
 
	return RemoveTrainWaypoint(tile, flags, true);
 
}