Patric Stout
9fff00ba20
Codechange: C++-ify lists for SaveLoad ( #9323 )
...
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.
3 years ago
dP
452e1e3328
Codechange #8258 : Remove unused town cargo caches from the savegame
4 years ago
dP
7045186594
Change #8159 : Remove now unused town cargo caches without bumping the savegame version
4 years ago
dP
ca2604c4e2
Revert #8157 : Redundant change
4 years ago
Jonathan G Rennison
7a09413a1a
Fix: Incorrect save/load array size of Town::cargo_accepted
...
In 11ab3c4e
the number of cargo types was changed from 32 to 64.
The save/load of Town::cargo_accepted was not updated, such that
only half of the data structure is saved/loaded in savegame versions
199 to 218.
Discard and regenerate data from all savegame versions prior to 219.
4 years ago
Michael Lutz
63ccb36ef3
Codechange: Use std::string for most of the user-settable custom names.
4 years ago
glx
ee7a8eebca
Codechange: Replace FOR_ALL_TOWNS with range-based for loops
5 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
peter1138
4f052fc2a4
Cleanup: Fix alignment after NULL -> nullptr change.
6 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
6 years ago
Niels Martin Hansen
7b56be0f3a
Codechange: Make a k-d tree index of towns
6 years ago
Peter Nelson
e21ade375e
Codechange: Change from numeric to descriptive SLV enum labels for last entries.
6 years ago
Peter Nelson
9de12521ec
Codechange: Convert saveload numbers to enum values.
...
(This was mostly achieved with a few in-place regexes)
6 years ago
Peter Nelson
ea4ea62816
Codechange: Make saveload version upper bound exclusive, i.e. version object was removed instead of version object last appeared.
6 years ago
PeterN
11ab3c4ea2
Change: Increase cargo type limit to 64.
6 years ago
PeterN
4cebebcf68
Change: Add CargoTypes type for cargo masks. ( #6790 )
6 years ago
frosch
a56e2bccd0
(svn r27756) -Codechange: Add StringTab enum
8 years ago
frosch
9ad09627ad
(svn r27754) -Codechange: Add GetStringTab(), GetStringIndex() and MakeStringID() to access the structure of StringIDs.
8 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
12 years ago
frosch
b11b0bb0e2
(svn r24482) -Fix [FS#5232] (r24180): Do not call RebuildSubsidisedSourceAndDestinationCache() before subsidy savegame conversion is finished.
12 years ago
frosch
0d03c1ff85
(svn r24182) -Fix [FS#5169-ish]: The population of a town was computed incorrectly for overridden houses when loading a game.
13 years ago
rubidium
b926277caf
(svn r24180) -Codechange/feature-ish: add cache checker for the town's cache
13 years ago
rubidium
41e5c839e0
(svn r24179) -Codechange: move some variables of Town to TownCache
13 years ago
yexo
ecc9997277
(svn r23657) -Fix (r22958): loading of very old savegames with custom town names failed
13 years ago
truebrain
102f811d02
(svn r23636) -Add: introduce ScriptText in parameters where it can be used
13 years ago
truebrain
ad48ab9237
(svn r23626) -Add: ScriptTown::SetText, which adds custom text to the Town GUI
13 years ago
rubidium
3d88c74389
(svn r23526) -Codechange: unify cargos vs cargoes
13 years ago
rubidium
432c16d5b9
(svn r23418) -Fix [FS#4866] (r22958): saves made with the Catalan town name generator would trigger a "savegame corrupt" exception
13 years ago
terkhen
de0bf0663a
(svn r23407) -Codechange: Keep a bitmap of all cargos accepted by towns.
13 years ago
terkhen
59d8b0204f
(svn r23405) -Codechange: Keep a matrix of cargos accepted by houses for each town (michi_cc).
13 years ago
truebrain
f906ebd2a5
(svn r23300) -Add: show on the GUI when a town grows and make a general framework to store goals of a town
13 years ago
truebrain
229e572663
(svn r23298) -Add: track statistics of all incoming and outgoing goods. Incoming based on TownEffect, outgoing based on CargoType (based on patch by Terkhen)
13 years ago
michi_cc
6548ec6e9e
(svn r23233) -Codechange: Refactor maximum and actually transported cargo amount of towns into a reusable struct.
13 years ago
rubidium
73a3708a9e
(svn r22958) -Fix [FS#4778]: the savegame description and loading of savegames would crash with savegames from a patched stable (which didn't bump the savegame version)
13 years ago
yexo
40d5419cd2
(svn r22920) -Cleanup: replace two very old town variables taht were rarely used by small functions that compute there value on-the-fly when necessary
13 years ago
terkhen
7ffc8c0173
(svn r22568) -Change: Add a list of persistent storages to the Town class.
14 years ago
frosch
9390bddbbd
(svn r20610) -Fix (r20609): X and Y got swapped.
14 years ago
yexo
3b04f510b1
(svn r20609) -Fix [FS#3702]: crash when a NewGRF defined an invalid substitute type for a house and the NewGRF was removed during the game
14 years ago
rubidium
d6004d17d4
(svn r20449) -Codechange: unduplicate saving/loading of NewGRF ID + local id -> OpenTTD spec mappings
14 years ago
frosch
62ac138154
(svn r19973) -Codechange: Add another procedure to chunk handlers for checking savegames (empty for now).
15 years ago
yexo
05d29d8a3d
(svn r19435) -Fix: when loading a savegame created with a house newgrf without that newgrf available all houses became tall office blocks
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
smatz
b668c24d46
(svn r16666) -Codechange: replace GetHouseSpecs() by HouseSpec::Get(), hide _house_specs[]
15 years ago
smatz
af78d6a9bb
(svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile()
15 years ago
smatz
e6a165881c
(svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files
15 years ago
smatz
a50ba1b8c1
(svn r16632) -Codechange: rename Town::flags12 to Town::flags
16 years ago
smatz
5ef0745254
(svn r16631) -Fix (r1826)(r1881)(r9613): loading of some town data from old savegames was broken
16 years ago
smatz
62a7948af0
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago