MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SlIsObjectValidInSavegame

Function SlIsObjectValidInSavegame

src/saveload/saveload.cpp:1613–1616  ·  view source on GitHub ↗

Are we going to save this object or not? */

Source from the content-addressed store, hash-verified

1611
1612/** Are we going to save this object or not? */
1613static inline bool SlIsObjectValidInSavegame(const SaveLoad &sld)
1614{
1615 return (_sl_version >= sld.version_from && _sl_version < sld.version_to);
1616}
1617
1618/**
1619 * Calculate the size of the table header.

Callers 5

SlCalcTableHeaderFunction · 0.85
SlCalcObjMemberLengthFunction · 0.85
SlObjectMemberFunction · 0.85
SlTableHeaderFunction · 0.85
SlCompatTableHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected