rubidium
979ccd45ba
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
2007-03-07 12:11:48 +00:00
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
truelight
b3b14ac2ad
(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.....)
2007-03-06 20:59:52 +00:00
Darkvater
9cf01ff432
(svn r8844) -Revert partly (r8820, r8806): Change AppendToGRFConfigList to add the allocated GRFConfig to its list and not copy it.
2007-02-22 16:16:44 +00:00
Darkvater
37f14d4444
(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.
2007-02-20 00:01:54 +00:00
Darkvater
e8ffb1599c
(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.
2007-02-18 22:50:51 +00:00
Darkvater
3053109c63
(svn r8740) -Fix (r8783): GCC warnings about not-handled MP_ values in switch case (glx)
2007-02-14 20:48:00 +00:00
Darkvater
4c0f91e060
(svn r8739) -Codechange: Update the oldloader debug levels to be more in spec with the guidelines in debug.h.
2007-02-14 20:19:07 +00:00
Darkvater
89172eb054
(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.
2007-02-14 20:17:11 +00:00
Darkvater
92faa8d80e
(svn r8737) -Regression (r8621): VEH_Type renumbering wasn't performed for TTD(P) games, failing to load them
2007-02-14 20:10:52 +00:00
celestar
a89f2fd610
(svn r8707) -Codechange: Turn IsValidStation into a method of Station
2007-02-13 15:42:52 +00:00
tron
ced80aadaa
(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.
2007-02-10 08:19:39 +00:00
tron
cb859f4a6a
(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
2007-01-31 06:25:46 +00:00
tron
49fabae7a1
(svn r8475) -Fix
...
Remove the unused remnants of blocked_months_obsolete
2007-01-31 05:01:29 +00:00
tron
7fffe8b3d4
(svn r8385) -Fix
...
-Regression (r8314): I only did half the necessary changes to move railtype from Engine to RailVehicleInfo. Now do the rest.
2007-01-24 07:14:09 +00:00
tron
81e88a2a7c
(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.
2007-01-19 11:47:48 +00:00
tron
4ff9b8a2a7
(svn r8207) -Fix
...
Remove the write-only attribute RoadStop::station
2007-01-17 21:14:17 +00:00
celestar
bdb9543f7c
(svn r8185) -Codechange: Equipped Roadstops with new/delete operators and gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson)
2007-01-17 11:15:51 +00:00
KUDr
3439942ab5
(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.
2007-01-14 21:03:21 +00:00
Darkvater
a3e33358df
(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)
2007-01-12 00:44:49 +00:00
celestar
c56ee62ade
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
2007-01-11 12:32:10 +00:00
belugas
04694afabb
(svn r8050) -Codechange: Rename map member extra to m6, since its usage has been widden.
...
Only doc landscape_grid.html has been updated, landscape.html will be done latter.
-CodeChange: Replace a direct access to m6 with SetTropicZone in InitializeLandscape, as it is the only part of m6 still untouched without the brute-forced m6=0
2007-01-11 02:05:13 +00:00
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00