summaryrefslogtreecommitdiff
path: root/src/saveload/station_sl.cpp
AgeCommit message (Collapse)Author
2021-06-14Codechange: remove the special station/vehicle code from SaveLoadPatric Stout
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.
2021-06-10Codechange: rename SL_LST to SL_REFLIST to highlight the "reference" partPatric Stout
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.
2021-06-06Codechange: Remove FOR_ALL_CHUNK_HANDLERSglx22
Co-Authored-By: Patric Stout <truebrain@openttd.org>
2021-05-31Codechange: C++-ify lists for SaveLoad (#9323)Patric Stout
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.
2021-05-13Codechange: Replace TILE_AREA_LOOP with range-based for loopsglx22
2020-05-21Codechange: Use std::string for most of the user-settable custom names.Michael Lutz
2020-05-06Fix #8021: limit savegame range for docking tiles fixingglx
2020-03-30Fix #8020: Add missing docking tiles around industry neutral stationsSamuXarick
2019-12-21Codechange: Replace FOR_ALL_ROADSTOPS with range-based for loopsglx
2019-12-21Codechange: Replace vehicle related FOR_ALL with range-based for loopsglx
2019-12-21Codechange: Replace order related FOR_ALL with range-based for loopsglx
2019-12-21Codechange: Replace station related FOR_ALL with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-06-30Feature: Multi-tile docks and docking points.peter1138
2019-04-13Cleanup: Fix alignment after NULL -> nullptr change.peter1138
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-02-02Codechange: Change from numeric to descriptive SLV enum labels for last entries.Peter Nelson
2019-02-02Codechange: Convert saveload numbers to enum values.Peter Nelson
(This was mostly achieved with a few in-place regexes)
2019-02-02Codechange: Make saveload version upper bound exclusive, i.e. version object ↵Peter Nelson
was removed instead of version object last appeared.
2019-01-30Codechange: Remove value mangling and field misuse in SLE_WRITEBYTE.Peter Nelson
The original translation functionality hasn't been used since 2007.
2018-09-02Feature: [NewGRF] Increase size of persistent storage to 256.Michael Lutz
2018-06-26Change: Increase cargo type limit to 64.PeterN
2017-03-05(svn r27770) -Fix [FS#6540]: Initialize variables in station_sl.cpp (JGR)fonsinchen
2014-09-21(svn r26878) -Change: move m6 to TileExtended to keep Tile 8 bytes and thus ↵rubidium
better alignable
2014-08-22(svn r26753) -Fix: desync due to not always properly restoring game state ↵rubidium
from the savegame
2014-05-11(svn r26580) -Codechange: s/GES_PICKUP/GES_RATING/ (it has nothing to do ↵rubidium
with actual pickup), s/acceptance_pickup/status/ (the enum isn't called GoodEntryStatus for a reason; it's not only acceptance and pickup anymore)
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-12-23(svn r26175) -Add: Log in desync output when persistent storage is discarded.frosch
2013-11-23(svn r26057) -Fix: a number of possibly uninitialised variablesrubidium
2013-10-22(svn r25899) -Change: Restrict flows if links are restricted and don't ↵fonsinchen
normally pick them anymore.
2013-06-09(svn r25362) -Feature: consider cargo waiting at other stations for rating ↵fonsinchen
at the origin station
2013-06-09(svn r25361) -Feature: distribute cargo according to plan given by linkgraphfonsinchen
2013-06-09(svn r25360) -Codechange: save and load flow statsfonsinchen
2013-06-08(svn r25337) -Fix: saving only 8 bits of 16 causes endianness problemsfonsinchen
2013-06-01(svn r25312) -Fix-ish: missing spaces after comma + realignment of tables; ↵rubidium
quite boring with -x -w
2013-02-17(svn r25012) -Codechange: persistently keep 'reserved' cargo (for full-load ↵rubidium
improved loading) instead of calculating if for every cycle
2013-01-11(svn r24905) -Feature(ish): Implement station randomisation triggers.peter1138
2012-11-12(svn r24718) -Codechange: Rename GoodsEntry::days_since_pickup to ↵frosch
GoodsEntry::time_since_pickup.
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-19(svn r23636) -Add: introduce ScriptText in parameters where it can be usedtruebrain
2011-12-15(svn r23526) -Codechange: unify cargos vs cargoesrubidium
2011-06-12(svn r22567) -Codechange: Store persistent storages inside a pool.terkhen
2011-06-04(svn r22540) -Codechange: Rename AcceptancePickup to GoodsEntryStatus.terkhen
2011-02-27(svn r22155) -Codechange: one comment in saveload/station_sl.cpp was wrongsmatz
2011-02-11(svn r22057) -Fix: waypoint conversion could (previously) silently overfill ↵rubidium
the pool and crash
2011-02-08(svn r22025) -Fix: verify there is enough space in the pool when creating ↵smatz
new pool items while loading old savegames
2011-01-14(svn r21795) -Fix (r21790): when converting TTDPatch train waypoints, ↵rubidium
convert the data on the map as well
2011-01-14(svn r21794) -Fix (r21790): convert train orders too (Rubidium)smatz
2011-01-14(svn r21790) -Fix [FS#4398]: TTDPatch savegames can have train waypoints ↵smatz
encoded as buoys
2011-01-14(svn r21784) -Fix (r16909): crash when converting savegame with custom ↵smatz
waypoint name