File diff r23953:ba75d2f3b530 → r23954:8e43140b9a66
src/script/api/script_waypointlist.cpp
Show inline comments
 
@@ -14,14 +14,13 @@
 
#include "../../waypoint_base.h"
 

	
 
#include "../../safeguards.h"
 

	
 
ScriptWaypointList::ScriptWaypointList(ScriptWaypoint::WaypointType waypoint_type)
 
{
 
	const Waypoint *wp;
 
	FOR_ALL_WAYPOINTS(wp) {
 
	for (const Waypoint *wp : Waypoint::Iterate()) {
 
		if ((wp->facilities & waypoint_type) &&
 
				(wp->owner == ScriptObject::GetCompany() || ScriptObject::GetCompany() == OWNER_DEITY || wp->owner == OWNER_NONE)) this->AddItem(wp->index);
 
	}
 
}
 

	
 
ScriptWaypointList_Vehicle::ScriptWaypointList_Vehicle(VehicleID vehicle_id)