Age | Commit message (Collapse) | Author |
|
|
|
|
|
With the new SLEG_STRUCT it is much easier to embed a struct
in a struct, where the sub-struct has limitations on when it is
being used.
This makes both the code easier to read (less magic) and avoids
the SaveLoad needing to know all these things about Stations
and Vehicles.
|
|
Basically, this changes "SaveLoad *" to either:
1) "SaveLoadTable" if a list of SaveLoads was meant
2) "SaveLoad &" if a single entry was meant
As added bonus, this removes SL_END / SLE_END / SLEG_END. This
also adds core/span.hpp, a "std::span"-lite.
|
|
|
|
|
|
|
|
|
|
|
|
possibly be uninitialised
|
|
|
|
timetables
|
|
private
|
|
always consider all branches of conditional orders as possible next stopping stations.
|
|
loading and unloading.
|
|
GetNextStoppingOrder so that we can access both branches in calling code
|
|
|
|
|
|
cases where it worked were corner cases rather than the general case.
|
|
|
|
|
|
an order is out of range.
|
|
|
|
from the station list
|
|
station when the vehicle allows it.
|
|
as no real order influencing path finding is added
|
|
more likely to be updated [o-s].
|
|
with only automatic orders
|
|
for intermediate stations and remove them when not visiting them anymore. This allows you to see what trains visit a station without actually having to order a vehicle to stop at all stations. Based on patch by fonsinchen
|
|
vehicle's order list from the validation of those (user) commands. Based on patch by fonsinchen
|
|
|
|
|
|
|
|
|
|
document some related variables/functions
|
|
|
|
which were sometimes missing and sometimes just typos
|
|
|
|
favour of their Station variants
|
|
wrong results due to OpenTTD codechanges
|
|
|
|
time, binary size and run time (with asserts disabled) should be improved
|
|
variable instead of var->index
|
|
In the first phase, indexes are stored. In the second phase, indexes are checked for validity and converted to pointers
|
|
|
|
PoolItem::IsValidID(index)
|
|
PoolItem::GetPoolSize()
|
|
|
|
-Fix: 'Go non-stop to nearest depot'-orders did not work wrt. the 'non-stop' part.
-Fix: Adding 'Go to nearest depot'-orders did not respect the default setting for 'non-stop'.
|
|
end, middle or far end of a platform from the point of view of the driver of the train that enters the station.
|