|
@@ -15,14 +15,13 @@
|
|
|
#include "../../vehicle_base.h"
|
|
|
|
|
|
#include "../../safeguards.h"
|
|
|
|
|
|
ScriptStationList::ScriptStationList(ScriptStation::StationType station_type)
|
|
|
{
|
|
|
Station *st;
|
|
|
FOR_ALL_STATIONS(st) {
|
|
|
for (Station *st : Station::Iterate()) {
|
|
|
if ((st->owner == ScriptObject::GetCompany() || ScriptObject::GetCompany() == OWNER_DEITY) && (st->facilities & station_type) != 0) this->AddItem(st->index);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
ScriptStationList_Vehicle::ScriptStationList_Vehicle(VehicleID vehicle_id)
|
|
|
{
|