summaryrefslogtreecommitdiff
path: root/src/saveload/oldloader.h
AgeCommit message (Collapse)Author
2021-02-13Codechange: Don't use cpp_offsetof in the TTO/TTD savegame loader.Michael Lutz
Many of the member variables that are used in the oldloader are inside types that are not standard layout types. Using pointer arithmetics to determine addresses of members inside types that are not standard layout is generally undefined behaviour. If we'd use C++17, it is conditionally supported, which means each compiler may or may not support it. And even then using it for individual array elements is syntactically not supported the the standard offsetof function.
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-13Cleanup: Fix alignment after NULL -> nullptr change.peter1138
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2011-12-19(svn r23595) -Codechange: add comma after last enum to get a more uniform ↵rubidium
coding style
2010-07-30(svn r20247) -Fix: when it is known the loading an old savegame is going to ↵rubidium
fail, bail out immediately (using an exception) instead of going on until e.g. the expected number of byte is read
2010-05-13(svn r19812) -Codechange: give some unnamed enums a name or, in case they ↵rubidium
consisted of unrelated values use static const (u)int
2010-03-23(svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT ↵smatz
and DECLARE_ENUM_AS_BIT_SET
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2010-01-01(svn r18683) -Fix: it's not an otherrubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-01-25(svn r15274) -Fix (r8705): oldloader wasn't updated to use 64bit airport_flagssmatz
2009-01-23(svn r15223) -Codechange: move GetOldTownName to oldloader_sl.cpp as it is ↵smatz
specific to loading of TTO/TTD savegames
2009-01-23(svn r15216) -Feature: native support for Transport Tycoon (Original) ↵smatz
savegames. Based on SVXConverter's source code and documentation by Roman Vetter
2009-01-20(svn r15174) -Codechange: split oldloader.cppsmatz