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.
|
|
You can easily mistake SlList / SL_LST to be a list of SL_VAR, but
it is a list of SL_REF. With this rename, it hopefully saves a few
people from "wtf?" moments.
|
|
Co-Authored-By: Patric Stout <truebrain@openttd.org>
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(This was mostly achieved with a few in-place regexes)
|
|
was removed instead of version object last appeared.
|
|
The original translation functionality hasn't been used since 2007.
|
|
|
|
|
|
|
|
better alignable
|
|
from the savegame
|
|
with actual pickup), s/acceptance_pickup/status/ (the enum isn't called GoodEntryStatus for a reason; it's not only acceptance and pickup anymore)
|
|
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
|
|
|
|
|
|
normally pick them anymore.
|
|
at the origin station
|
|
|
|
|
|
|
|
quite boring with -x -w
|
|
improved loading) instead of calculating if for every cycle
|
|
|
|
GoodsEntry::time_since_pickup.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the pool and crash
|
|
new pool items while loading old savegames
|
|
convert the data on the map as well
|
|
|
|
encoded as buoys
|
|
waypoint name
|