summaryrefslogtreecommitdiff
path: root/src/company_base.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-06-08 13:21:31 +0200
committerPatric Stout <github@truebrain.nl>2021-06-14 21:58:05 +0200
commit4600d289b5d12389137d36e57bfda09c26ed6caf (patch)
treebeadd0344d657781fb3dc600065b25ffa40d9bc2 /src/company_base.h
parent909f3f25bd58ad2dbb658beeea80a9fcd1494302 (diff)
downloadopenttd-4600d289b5d12389137d36e57bfda09c26ed6caf.tar.xz
Codechange: ability to store structs and list of structs in savegames
The commits following this will use this new functionality. Currently, a few places do this manually. This has as drawback that the Save() and Load() code need to be in sync, and that any change can result in (old) savegames no longer loading. In general, it is annoying code to maintain. By putting everything in a description table, and use that for both Save() and Load(), it becomes easier to see what is going on, and hopefully less likely for people to make mistakes.
Diffstat (limited to 'src/company_base.h')
0 files changed, 0 insertions, 0 deletions