summaryrefslogtreecommitdiff
path: root/oldloader.c
AgeCommit message (Collapse)Author
2005-01-07(svn r1411) -Fix: structure packing in the OS/2 version (eg, with the old ↵truelight
loader).
2005-01-06(svn r1408) -Fix: uninitialized variable :)darkvater
2005-01-06(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns ↵truelight
and _industries (in prepare of dynamic arrays): - DEREF_XXX is changed into GetXXX - All direct call are directed via GetXXX - struct Industry has now an index-field - ENUM'd some stuff - Replaced home built loops with FOR_ALL_XXX - Added _stations_size, _vehicles_size, ... which gives the length of the array (which will be dynamic in the near future) - Changed lengtof(XXX) to _XXX_size (e.g. _stations_size) - Removed all endof(XXX) (because mostly it was part of a FOR_ALL_XXX) - Made the sort-functions of all 4 dynamic - Made all 4 Initialize functions more of the same - Some minor tab-fixing and stuff (tnx to Tron for proof-reading my 100kb patch ;)) Note for all: please do NOT directly call _stations, _vehicles, _towns and _industries, but use the right wrapper to access them. Thank you. Ps: please also do not use 'v++', where v is of type Vehicle *.
2005-01-03(svn r1356) -Fix: [1092363] missing GCC_PACK in oldloader.c (thx hafken)darkvater
2004-12-28(svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and ↵truelight
loaded as an uint8 till the savegame version is bumped to version 5. Then it works automaticly as a fully uint16. So _stations[] can not be increased till after the bump!!
2004-12-17(svn r1145) Remove stray line which crept in in last committron
2004-12-17(svn r1144) Don't rely on sizeof() to determine the map size, use MapSize() ↵tron
instead
2004-12-15(svn r1117) Move map arrays and some related macros into their own files ↵tron
map.c and map.h
2004-12-09(svn r990) Fix a display bug in the order list:tron
TTD stores invalid orders different than OTTD, this resulted in empty lines in the order list. With the overhaul of the order system this got worse: no line was shown at all. Fix this by sanity checking while loading and convert the orders accordingly.
2004-12-05(svn r955) Replace uint16 for orders with struct Ordertron
This adds no functionality, but is a stepping stone for future improvement (like 16bit order indices) and is easier to read. This changes preserves binary compatibility wrt savegames.
2004-11-25(svn r815) Include strings.h only in the files which need it.tron
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-11-16(svn r645) -Feature: Finally support for TTDLX games on Big Endian machines ↵darkvater
such as Macintosh and MorphOS; thanks for testing Bjarni :) -Added turkish.txt to lang-project and screenshot.h to ttd-project
2004-11-14(svn r607) -Patch: [ 985102 ] static cleanuptron
Thanks to lvoge
2004-11-14(svn r584) -newgrf: Increase chance to get a TTDPatch savegame using custom ↵darkvater
GRF files loaded (pasky)
2004-09-11(svn r207) -Codechange: randomizer handlingsignde
-Fix: desync problem fixes -Fix: server doesnt hang anymore when a client timed out -Feature: low latency connection enhancements [*net_sync_freq, *net_ready_ahead]
2004-09-10(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!truelight
2004-08-23(svn r124) Prepared code for removal of block_months variable in next major ↵dominik
savegame version
2004-08-10(svn r5) -Fix: townname generation of TTDLX savegames. All work darkvater
except for German Townnames (also fix one typo on English town-names) -CodeChange: *act_paper to *act_water in Town to more resemble its use -Fix: AI players now retain AI status. Since TTDLX savegame status is not fully documented, some holes exist (AI state is set to one without a vehicle, otherwise it crashes)
2004-08-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight