Allow building multiple docks per station.
(cherry picked from commit 0110c4a35d383e0be2cbb53cbe9cbe6784abb3e9) # Conflicts: # src/station_cmd.cpp
This commit is contained in:

committed by
Jonathan G Rennison

parent
d486d58d86
commit
1d3cf59d8a
@@ -22,6 +22,7 @@
|
||||
#include "core/pool_func.hpp"
|
||||
#include "station_base.h"
|
||||
#include "roadstop_base.h"
|
||||
#include "dock_base.h"
|
||||
#include "industry.h"
|
||||
#include "core/random_func.hpp"
|
||||
#include "linkgraph/linkgraph.h"
|
||||
@@ -59,7 +60,7 @@ Station::Station(TileIndex tile) :
|
||||
SpecializedStation<Station, false>(tile),
|
||||
bus_station(INVALID_TILE, 0, 0),
|
||||
truck_station(INVALID_TILE, 0, 0),
|
||||
dock_tile(INVALID_TILE),
|
||||
dock_station(INVALID_TILE, 0, 0),
|
||||
indtype(IT_INVALID),
|
||||
time_since_load(255),
|
||||
time_since_unload(255),
|
||||
@@ -280,10 +281,10 @@ uint Station::GetCatchmentRadius() const
|
||||
if (this->bus_stops != NULL) ret = max<uint>(ret, CA_BUS);
|
||||
if (this->truck_stops != NULL) ret = max<uint>(ret, CA_TRUCK);
|
||||
if (this->train_station.tile != INVALID_TILE) ret = max<uint>(ret, CA_TRAIN);
|
||||
if (this->dock_tile != INVALID_TILE) ret = max<uint>(ret, CA_DOCK);
|
||||
if (this->docks != NULL) ret = max<uint>(ret, CA_DOCK);
|
||||
if (this->airport.tile != INVALID_TILE) ret = max<uint>(ret, this->airport.GetSpec()->catchment);
|
||||
} else {
|
||||
if (this->bus_stops != NULL || this->truck_stops != NULL || this->train_station.tile != INVALID_TILE || this->dock_tile != INVALID_TILE || this->airport.tile != INVALID_TILE) {
|
||||
if (this->bus_stops != NULL || this->truck_stops != NULL || this->train_station.tile != INVALID_TILE || this->docks != NULL || this->airport.tile != INVALID_TILE) {
|
||||
ret = CA_UNMODIFIED;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user