|
@@ -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)
|