Commit Graph

53 Commits (006acff1834d37ba4b1553ba324c255a6cc2382e)

Author SHA1 Message Date
rubidium feda05d67d (svn r11280) -Fix [FS#1343]: wrong money related values when loading old games. Inspired on a patch by SmatZ. 17 years ago
rubidium 4f512a70c3 (svn r11275) -Fix: oldloader crashing when referencing a vehicle that is not yet loaded. 17 years ago
rubidium 31bf6876d3 (svn r11271) -Fix [FS#1333]: some (very) old games (TTD original scenarios for example) would give a new vehicle spree, even though the vehicles were introduced decades ago. 17 years ago
glx d47e51c246 (svn r11255) -Fix [FS#1332]: industry counter was not updated on TTD savegame loading 17 years ago
truelight 8b7f864c2d (svn r11245) -Fix r11228: the moreanimation feature made loading TTD(p) games impossible (Csaboka) 17 years ago
rubidium cb6cdf7978 (svn r11228) -Codechange: implement the "moreanimation" feature of TTDP, so we can properly support newindustries. 17 years ago
rubidium 4eef590b15 (svn r11057) -Fix [FS#1215]: loading TTD savegames went into an infinite loop due to not yet properly set next and previous pointers. 17 years ago
rubidium 9b65bc430c (svn r11004) -Codechange: some reworks of the saveload mechanism to be able to save and load private and protected variables in the vehicle struct. 17 years ago
rubidium a0d37ea7b9 (svn r10981) -Fix [FS#1156] (r10970): stations gave ratings for accepted cargo too. 17 years ago
rubidium 48df8b374c (svn r10771) -Codechange: remove some code duplication from the old loader. 17 years ago
rubidium e4149482ec (svn r10759) -Codechange: make the industry struct use the pool item class as super class. 17 years ago
rubidium 549450d31a (svn r10758) -Codechange: make the depot struct use the pool item class as super class. 17 years ago
rubidium 5bd241eb5b (svn r10697) -Codechange: give a more sensible names to some of the unkX variables. 17 years ago
rubidium 3dd6362bb8 (svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs. 17 years ago
rubidium 1bdb72ebd4 (svn r10439) -Codechange: initial steps for customized industry productions. 17 years ago
rubidium e5c352818d (svn r10266) -Codechange: keep track of the origin, time of travel and 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. 17 years ago
rubidium 16ce2192e4 (svn r10212) -Fix [FS#723]: money overflow bugs in many locations. 17 years ago
rubidium 7a72dcb3b5 (svn r10207) -Codechange: remove the redundant player_money in favour of the money64, which is now renamed to player_money. 17 years ago
rubidium 2c6bf89e02 (svn r10147) -Fix: the oldloader did clear some bits for road vehicles that shouldn't be cleared in some cases. 17 years ago
rubidium 197a8fd5f3 (svn r10145) -Fix: make compiling with networking disabled (again) possible. 17 years ago
rubidium 8a74b2ebe1 (svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month). 17 years ago
belugas 380d18fb69 (svn r9867) -Codechange: Remove data duplication. The exact same values can be found in the industry spec, so take it from there instead. 17 years ago
rubidium 042bcc0325 (svn r9857) -Fix: loading of TTDP savegames with features that OTTD has. 17 years ago
rubidium 1bea3b55a6 (svn r9763) -Codechange/Fix (r9760): don't read the variables that are calculated automatically either. 17 years ago
rubidium 202009522c (svn r9754) -Codechange: make classes for all vehicle types, so we can make nicer/better maintainable code, i.e. virtual methods instead of switches. 17 years ago
rubidium 80c259f64f (svn r9672) -Cleanup: lots of coding style fixes around operands. 17 years ago
belugas 57557ba599 (svn r9390) -Documentation : correct Doxygen of comments and @file inclusion. This time, brought to you by the letter O 18 years ago
bjarni c2b7d0192d (svn r9072) -Codechange: [Orders] added methods to orders to free them and check if they are in use 18 years ago
rubidium ce919e8c71 (svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code). 18 years ago
rubidium 24c4d5b06d (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 18 years ago
rubidium 36bb92ae24 (svn r9050) -Codechange: Foo(void) -> Foo() 18 years ago
truelight 43133c766c (svn r9034) -Codechange: renamed _pause to _pause_game, as some targets already have
a symbol called _pause (and therefor our variable conflicts with 
 thatone. We shouldn't be using _ as global indicator.....)
18 years ago
Darkvater 31be3c6fac (svn r8844) -Revert partly (r8820, r8806): Change AppendToGRFConfigList to add the allocated GRFConfig to its list and not copy it. 18 years ago
Darkvater 5b237758aa (svn r8820) -Codechange (r8807, r8806): Remove the unneeded calloc/free allocation of GRFConfig and turn it into a simple variable (it's supposed to be data-only). Thanks Tron. 18 years ago
Darkvater 8dae4e45ac (svn r8807) -Feature: Add support for loading (some of) the TTDP extra 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.
18 years ago
Darkvater 32d2a012e4 (svn r8740) -Fix (r8783): GCC warnings about not-handled MP_ values in switch case (glx) 18 years ago
Darkvater 3a86ae8ba4 (svn r8739) -Codechange: Update the oldloader debug levels to be more in spec with the guidelines in debug.h. 18 years ago
Darkvater 12868eeb97 (svn r8738) -Fix: TTDP games have all tiles touching the water marked as MP_WATER, we do not (tiles with one corner, or steep tiles), so check and fix these tiles. 18 years ago
Darkvater c8fb4ddf57 (svn r8737) -Regression (r8621): VEH_Type renumbering wasn't performed for TTD(P) games, failing to load them 18 years ago
celestar 8eab3964b4 (svn r8707) -Codechange: Turn IsValidStation into a method of Station 18 years ago
tron 356e47f108 (svn r8660) -Fix
-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.
18 years ago
tron fe1691acce (svn r8477) -Fix
-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
18 years ago
tron 5d4241db30 (svn r8475) -Fix
Remove the unused remnants of blocked_months_obsolete
18 years ago
tron 0996de79df (svn r8385) -Fix
-Regression (r8314): I only did half the necessary changes to move railtype from Engine to RailVehicleInfo. Now do the rest.
18 years ago
tron b2def96248 (svn r8276) -Fix
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.
18 years ago
tron 3d1735fcfd (svn r8207) -Fix
Remove the write-only attribute RoadStop::station
18 years ago
celestar 8c54793068 (svn r8185) -Codechange: Equipped Roadstops with new/delete operators and gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson) 18 years ago
KUDr f8a434e9fc (svn r8131) -Fix (r8125): g++ warning: 'invalid access to non-static data member ‘<class>::<member>’ of NULL object'. It is weird, but renaming the 'offsetof' macro helped. 18 years ago
Darkvater 95deb5eace (svn r8071) -Fix (r5999): [FS#536] Merging 32bit dates broke the inauguration date of companies in
oldloader: "The year the company was inaugurated (full value, not base-1920)"
 (Marcin Grzegorczyk's TTD internals site)
18 years ago
celestar 1691b2da61 (svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation 18 years ago