summaryrefslogtreecommitdiff
path: root/src/oldloader.cpp
AgeCommit message (Collapse)Author
2007-11-19(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit ↵skidd13
with the coding style
2007-10-16(svn r11280) -Fix [FS#1343]: wrong money related values when loading old ↵rubidium
games. Inspired on a patch by SmatZ.
2007-10-16(svn r11275) -Fix: oldloader crashing when referencing a vehicle that is not ↵rubidium
yet loaded.
2007-10-15(svn r11271) -Fix [FS#1333]: some (very) old games (TTD original scenarios ↵rubidium
for example) would give a new vehicle spree, even though the vehicles were introduced decades ago.
2007-10-13(svn r11255) -Fix [FS#1332]: industry counter was not updated on TTD ↵glx
savegame loading
2007-10-11(svn r11245) -Fix r11228: the moreanimation feature made loading TTD(p) ↵truelight
games impossible (Csaboka)
2007-10-08(svn r11228) -Codechange: implement the "moreanimation" feature of TTDP, so ↵rubidium
we can properly support newindustries.
2007-09-07(svn r11057) -Fix [FS#1215]: loading TTD savegames went into an infinite ↵rubidium
loop due to not yet properly set next and previous pointers.
2007-08-30(svn r11004) -Codechange: some reworks of the saveload mechanism to be able ↵rubidium
to save and load private and protected variables in the vehicle struct.
2007-08-26(svn r10981) -Fix [FS#1156] (r10970): stations gave ratings for accepted ↵rubidium
cargo too.
2007-08-03(svn r10771) -Codechange: remove some code duplication from the old loader.rubidium
2007-08-02(svn r10759) -Codechange: make the industry struct use the pool item class ↵rubidium
as super class.
2007-08-02(svn r10758) -Codechange: make the depot struct use the pool item class as ↵rubidium
super class.
2007-07-26(svn r10697) -Codechange: give a more sensible names to some of the unkX ↵rubidium
variables.
2007-07-16(svn r10601) -Codechange: store (and use) the type of stations instead of ↵rubidium
hardcoding station types by graphics IDs.
2007-07-04(svn r10439) -Codechange: initial steps for customized industry productions.rubidium
2007-06-22(svn r10266) -Codechange: keep track of the origin, time of travel and ↵rubidium
accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it.
2007-06-19(svn r10212) -Fix [FS#723]: money overflow bugs in many locations.rubidium
2007-06-18(svn r10207) -Codechange: remove the redundant player_money in favour of the ↵rubidium
money64, which is now renamed to player_money.
2007-06-13(svn r10147) -Fix: the oldloader did clear some bits for road vehicles that ↵rubidium
shouldn't be cleared in some cases.
2007-06-13(svn r10145) -Fix: make compiling with networking disabled (again) possible.rubidium
2007-06-07(svn r10058) -Codechange: give some industry variable sensible names (like ↵rubidium
not telling "last_mo_production" when it is the production of the current month).
2007-05-18(svn r9867) -Codechange: Remove data duplication. The exact same values can ↵belugas
be found in the industry spec, so take it from there instead.
2007-05-16(svn r9857) -Fix: loading of TTDP savegames with features that OTTD has.rubidium
2007-05-01(svn r9763) -Codechange/Fix (r9760): don't read the variables that are ↵rubidium
calculated automatically either.
2007-04-29(svn r9754) -Codechange: make classes for all vehicle types, so we can make ↵rubidium
nicer/better maintainable code, i.e. virtual methods instead of switches.
2007-04-18(svn r9672) -Cleanup: lots of coding style fixes around operands.rubidium
2007-03-21(svn r9390) -Documentation : correct Doxygen of comments and @file ↵belugas
inclusion. This time, brought to you by the letter O
2007-03-08(svn r9072) -Codechange: [Orders] added methods to orders to free them and ↵bjarni
check if they are in use
2007-03-08(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the ↵rubidium
coding style (and rest of the code).
2007-03-07(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};rubidium
2007-03-07(svn r9050) -Codechange: Foo(void) -> Foo()rubidium
2007-03-06(svn r9034) -Codechange: renamed _pause to _pause_game, as some targets ↵truelight
already have a symbol called _pause (and therefor our variable conflicts with thatone. We shouldn't be using _ as global indicator.....)
2007-02-22(svn r8844) -Revert partly (r8820, r8806): Change AppendToGRFConfigList to ↵Darkvater
add the allocated GRFConfig to its list and not copy it.
2007-02-20(svn r8820) -Codechange (r8807, r8806): Remove the unneeded calloc/free ↵Darkvater
allocation of GRFConfig and turn it into a simple variable (it's supposed to be data-only). Thanks Tron.
2007-02-18(svn r8807) -Feature: Add support for loading (some of) the TTDP extra ↵Darkvater
chunks mainly list of GRFIDs and TTDP version the game was saved with. GRFID list is read and active GRFs are loaded with the game if present in the data/ directory. TTDP versioning information only works for newer versions, old versions will only give rough information but it's not worth the effort to precisely figure out what bit means what where and when.
2007-02-14(svn r8740) -Fix (r8783): GCC warnings about not-handled MP_ values in ↵Darkvater
switch case (glx)
2007-02-14(svn r8739) -Codechange: Update the oldloader debug levels to be more in ↵Darkvater
spec with the guidelines in debug.h.
2007-02-14(svn r8738) -Fix: TTDP games have all tiles touching the water marked as ↵Darkvater
MP_WATER, we do not (tiles with one corner, or steep tiles), so check and fix these tiles.
2007-02-14(svn r8737) -Regression (r8621): VEH_Type renumbering wasn't performed for ↵Darkvater
TTD(P) games, failing to load them
2007-02-13(svn r8707) -Codechange: Turn IsValidStation into a method of Stationcelestar
2007-02-10(svn r8660) -Fixtron
-Codechange: Remove _avail_aircraft Its name is misleading. It is rather _avail_airports, but then only some of them, which leads to inconsistencies when using it. Further it is unnecessary to store it in savegams.
2007-01-31(svn r8477) -Fixtron
-Codechange: Remove the unnecessary attributes Station::{bus,lorry}_tile_obsolete by replacing them with a scan of the map for existing road stops when loading old savegames
2007-01-31(svn r8475) -Fixtron
Remove the unused remnants of blocked_months_obsolete
2007-01-24(svn r8385) -Fixtron
-Regression (r8314): I only did half the necessary changes to move railtype from Engine to RailVehicleInfo. Now do the rest.
2007-01-19(svn r8276) -Fixtron
Change the signature of Swap() to be less error prone, i.e. pass the variables to be swapped by reference instead of passing pointers to the variables. Just do Swap(x, y) instead of Swap(&x, &y). This prevents accidents when the variables are pointers.
2007-01-17(svn r8207) -Fixtron
Remove the write-only attribute RoadStop::station
2007-01-17(svn r8185) -Codechange: Equipped Roadstops with new/delete operators and ↵celestar
gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson)
2007-01-14(svn r8131) -Fix (r8125): g++ warning: 'invalid access to non-static data ↵KUDr
member ‘<class>::<member>’ of NULL object'. It is weird, but renaming the 'offsetof' macro helped.
2007-01-12(svn r8071) -Fix (r5999): [FS#536] Merging 32bit dates broke the ↵Darkvater
inauguration date of companies in oldloader: "The year the company was inaugurated (full value, not base-1920)" (Marcin Grzegorczyk's TTD internals site)