Sat, 26 Aug 2006 11:06:54 +0000(svn r6136) -Fix: _cur_year wasn't converting when reading pre-31 savegames, causing nasty desyncs
truelight [Sat, 26 Aug 2006 11:06:54 +0000] rev 4383
(svn r6136) -Fix: _cur_year wasn't converting when reading pre-31 savegames, causing nasty desyncs
-Fix: _date, which is a Date, which is int32, was saved as uint32

Sat, 26 Aug 2006 07:45:18 +0000(svn r6135) WebTranslator2 update to 2006-08-26 09:44:54
miham [Sat, 26 Aug 2006 07:45:18 +0000] rev 4382
(svn r6135) WebTranslator2 update to 2006-08-26 09:44:54
dutch - 28 fixed by habell (28)
german - 5 changed by Neonox (5)
portuguese - 2 fixed by izhirahider (2)

Fri, 25 Aug 2006 19:18:16 +0000(svn r6131) -Codechange : Complete all missing _ttdpatch_flags entries
belugas [Fri, 25 Aug 2006 19:18:16 +0000] rev 4381
(svn r6131) -Codechange : Complete all missing _ttdpatch_flags entries
-Feature : both unifiedmaglevmode are now set.
Maglev and monorail are not allowed to run on each other tracks and will not be.
Setting those flags will allow grfsets as the Norvegian one to be loaded
-Codechange : link the TTDPatch's irregularstations with OTTD's nonuniform_stations
-Codechange : Reformat the whole array (thanks Rubidium, it sure looks better now)

Fri, 25 Aug 2006 12:58:52 +0000(svn r6122) Fix an off-by-two error in r6108: it should be the index for the last element in the array
tron [Fri, 25 Aug 2006 12:58:52 +0000] rev 4380
(svn r6122) Fix an off-by-two error in r6108: it should be the index for the last element in the array

Fri, 25 Aug 2006 12:26:34 +0000(svn r6117) -Fix r6097: on mingw it is normal that both / as \ are accepted as input
truelight [Fri, 25 Aug 2006 12:26:34 +0000] rev 4379
(svn r6117) -Fix r6097: on mingw it is normal that both / as \ are accepted as input
-Fix r6096: detect for PATHSEP on WIN32 or WIN64, not UNIX
(Windows compilers define either one, while other compilers don't define a thing)

Fri, 25 Aug 2006 08:49:32 +0000(svn r6114) WebTranslator2 update to 2006-08-25 10:49:08
miham [Fri, 25 Aug 2006 08:49:32 +0000] rev 4378
(svn r6114) WebTranslator2 update to 2006-08-25 10:49:08
american - 84 fixed by WhiteRabbit (84)
german - 3 fixed, 2 changed by chu (5)
portuguese - 2 fixed by izhirahider (2)

Fri, 25 Aug 2006 00:41:10 +0000(svn r6108) -NewGRF Feature: Implement currencies replacment via grf file.
belugas [Fri, 25 Aug 2006 00:41:10 +0000] rev 4377
(svn r6108) -NewGRF Feature: Implement currencies replacment via grf file.
All properties can now be modified i.e:
Introduction date for euro conversion
Currency name, decimal separator, currency symbol (before or after amount)
and the rate compared to the base currency, the british pound

Fri, 25 Aug 2006 00:35:11 +0000(svn r6107) -Fix r6089: add STRGEN preprocessor flag and string.c to strgen vs 80 project
belugas [Fri, 25 Aug 2006 00:35:11 +0000] rev 4376
(svn r6107) -Fix r6089: add STRGEN preprocessor flag and string.c to strgen vs 80 project
Carbon copy of Darkvater's r6105

Thu, 24 Aug 2006 22:52:58 +0000(svn r6105) -Fix r6089: add STRGEN preprocessor flag and string.c to strgen project
Darkvater [Thu, 24 Aug 2006 22:52:58 +0000] rev 4375
(svn r6105) -Fix r6089: add STRGEN preprocessor flag and string.c to strgen project

Thu, 24 Aug 2006 22:04:24 +0000(svn r6104) -Fix: make install did not create a directory for the heightmaps
rubidium [Thu, 24 Aug 2006 22:04:24 +0000] rev 4374
(svn r6104) -Fix: make install did not create a directory for the heightmaps
-Fix: make install should not copy scenario as it is an empty map

Thu, 24 Aug 2006 15:39:17 +0000(svn r6098) -Fix 6097: stupid me.... CHARS! Not strings, for strrchr :(
truelight [Thu, 24 Aug 2006 15:39:17 +0000] rev 4373
(svn r6098) -Fix 6097: stupid me.... CHARS! Not strings, for strrchr :(

Thu, 24 Aug 2006 15:36:25 +0000(svn r6097) -Fix: mingw and cygwin get / from Makefile, where \ is expected. Make exeption code for it (tnx for debug Frostregen)
truelight [Thu, 24 Aug 2006 15:36:25 +0000] rev 4372
(svn r6097) -Fix: mingw and cygwin get / from Makefile, where \ is expected. Make exeption code for it (tnx for debug Frostregen)

Thu, 24 Aug 2006 15:21:09 +0000(svn r6096) -Fix: silence a warning on mingw (tnx Frostregen)
truelight [Thu, 24 Aug 2006 15:21:09 +0000] rev 4371
(svn r6096) -Fix: silence a warning on mingw (tnx Frostregen)

Thu, 24 Aug 2006 12:08:25 +0000(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight [Thu, 24 Aug 2006 12:08:25 +0000] rev 4370
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)

Thu, 24 Aug 2006 10:19:59 +0000(svn r6086) -Fix: InteractiveRandom was not seeded properly resulting in the dedicated server always generating the same map. Thanks to the #openttdcoop team for detecting.
rubidium [Thu, 24 Aug 2006 10:19:59 +0000] rev 4369
(svn r6086) -Fix: InteractiveRandom was not seeded properly resulting in the dedicated server always generating the same map. Thanks to the #openttdcoop team for detecting.

Thu, 24 Aug 2006 10:11:32 +0000(svn r6084) -Fix r6073: if we removed MSVC6 support, then why is unittest.dsp still around...
truelight [Thu, 24 Aug 2006 10:11:32 +0000] rev 4368
(svn r6084) -Fix r6073: if we removed MSVC6 support, then why is unittest.dsp still around...

Thu, 24 Aug 2006 08:19:30 +0000(svn r6083) WebTranslator2 update to 2006-08-24 10:19:06
miham [Thu, 24 Aug 2006 08:19:30 +0000] rev 4367
(svn r6083) WebTranslator2 update to 2006-08-24 10:19:06
german - 3 fixed, 1 changed by chu (4)
slovak - 82 fixed, 2 changed by lengyel (84)
turkish - 3 fixed by jnmbk (3)

Thu, 24 Aug 2006 01:25:00 +0000(svn r6082) -CodeChange : Remove the unneeded table/sprites.h include in newgrf_cargo.h.
belugas [Thu, 24 Aug 2006 01:25:00 +0000] rev 4366
(svn r6082) -CodeChange : Remove the unneeded table/sprites.h include in newgrf_cargo.h.
Set it in genworld_gui.c instead, as it is really needed

Wed, 23 Aug 2006 23:23:14 +0000(svn r6081) -Fix(6054) : Silenced a MSVC warning on compiling (thanks MaulinMonkey)
belugas [Wed, 23 Aug 2006 23:23:14 +0000] rev 4365
(svn r6081) -Fix(6054) : Silenced a MSVC warning on compiling (thanks MaulinMonkey)

Wed, 23 Aug 2006 20:53:53 +0000(svn r6079) -Change: size and alignment of random seed input box and randomise button
glx [Wed, 23 Aug 2006 20:53:53 +0000] rev 4364
(svn r6079) -Change: size and alignment of random seed input box and randomise button

Wed, 23 Aug 2006 20:46:54 +0000(svn r6078) -Fix: forgot one uint16 -> Date conversion. Tnx to #openttdcoop team for detecting and Rubidium for finding the cause.
truelight [Wed, 23 Aug 2006 20:46:54 +0000] rev 4363
(svn r6078) -Fix: forgot one uint16 -> Date conversion. Tnx to #openttdcoop team for detecting and Rubidium for finding the cause.

Wed, 23 Aug 2006 19:58:17 +0000(svn r6076) WebTranslator2 update to 2006-08-23 21:57:55
miham [Wed, 23 Aug 2006 19:58:17 +0000] rev 4362
(svn r6076) WebTranslator2 update to 2006-08-23 21:57:55
french - 2 changed by glx (2)
portuguese - 26 fixed, 3 changed by izhirahider (29)

Wed, 23 Aug 2006 18:22:11 +0000(svn r6073) -We have removed MSVC6 support, so remove strgen and langs project files as well.
Darkvater [Wed, 23 Aug 2006 18:22:11 +0000] rev 4361
(svn r6073) -We have removed MSVC6 support, so remove strgen and langs project files as well.

Wed, 23 Aug 2006 15:30:03 +0000(svn r6068) -Codechange: Switch PNG and BMP priority for screenshots. This ensures PNG is used by default when available. (hylje)
matthijs [Wed, 23 Aug 2006 15:30:03 +0000] rev 4360
(svn r6068) -Codechange: Switch PNG and BMP priority for screenshots. This ensures PNG is used by default when available. (hylje)

Wed, 23 Aug 2006 13:55:56 +0000(svn r6064) WebTranslator2 update to 2006-08-23 15:55:27
miham [Wed, 23 Aug 2006 13:55:56 +0000] rev 4359
(svn r6064) WebTranslator2 update to 2006-08-23 15:55:27
french - 5 fixed by belugas (4), glx (1)
german - 26 fixed, 5 changed by chu (31)
turkish - 23 fixed by jnmbk (23)

Tue, 22 Aug 2006 22:59:42 +0000(svn r6059) -Fix(r6049): FOR_ALL was not use to not skip invalid items, so really don't skip invalid items :)
glx [Tue, 22 Aug 2006 22:59:42 +0000] rev 4358
(svn r6059) -Fix(r6049): FOR_ALL was not use to not skip invalid items, so really don't skip invalid items :)

Tue, 22 Aug 2006 21:17:19 +0000(svn r6058) -Fix: Get(Industry|Town)ArraySize could never return 0
truelight [Tue, 22 Aug 2006 21:17:19 +0000] rev 4357
(svn r6058) -Fix: Get(Industry|Town)ArraySize could never return 0
Note: _total_towns and _total_industries willb e removed soon, so this 'hack' is okay, for now ;)

Tue, 22 Aug 2006 21:14:45 +0000(svn r6057) -Codechange: made a function GetRandomXXX, that _always_ returns a valid XXX, unless there are none to pick from. Then NULL is returned.
truelight [Tue, 22 Aug 2006 21:14:45 +0000] rev 4356
(svn r6057) -Codechange: made a function GetRandomXXX, that _always_ returns a valid XXX, unless there are none to pick from. Then NULL is returned.

Tue, 22 Aug 2006 20:56:08 +0000(svn r6056) -Codechange: don't use a loop what can be done with a simple wrapper
truelight [Tue, 22 Aug 2006 20:56:08 +0000] rev 4355
(svn r6056) -Codechange: don't use a loop what can be done with a simple wrapper

Tue, 22 Aug 2006 20:41:26 +0000(svn r6055) -Codechange: added GetXXXArraySize, which returns HighestID + 1 (or, will do that).
truelight [Tue, 22 Aug 2006 20:41:26 +0000] rev 4354
(svn r6055) -Codechange: added GetXXXArraySize, which returns HighestID + 1 (or, will do that).
It isn't the best name, but we couldn't find any better.
This unifies the pool-system even more.

Tue, 22 Aug 2006 20:39:18 +0000(svn r6054) Change the sign sorter in a similar way as the other sorters: Remember a list of pointers to signs instead of a list of SignIDs - This removes a layer of indirection
tron [Tue, 22 Aug 2006 20:39:18 +0000] rev 4353
(svn r6054) Change the sign sorter in a similar way as the other sorters: Remember a list of pointers to signs instead of a list of SignIDs - This removes a layer of indirection
Also make the sign list static

Tue, 22 Aug 2006 18:15:17 +0000(svn r6053) -Codechange: renamed all IsXXXIndex to IsValidXXXID
truelight [Tue, 22 Aug 2006 18:15:17 +0000] rev 4352
(svn r6053) -Codechange: renamed all IsXXXIndex to IsValidXXXID
-Codechange: IsValidXXXID now also checks if XXX is really valid, not if the number is within range
Both changes again in preperation of the new mem-pool system, which requires this.
IsValidXXXID is not a bit less pretty, but that will be cleaned up after the new mem-pool system

Tue, 22 Aug 2006 17:13:49 +0000(svn r6052) -Codechange: change OrderType (order->type) in a typedef
truelight [Tue, 22 Aug 2006 17:13:49 +0000] rev 4351
(svn r6052) -Codechange: change OrderType (order->type) in a typedef
-Codechange: renamed DeleteDestinationFromVehicleOrder to RemoveOrderFromAllVehicles to reflect his function better
-Codechange: changed the params of RemoveOrderFromAllVehicles, to avoid unneeded variable-creation

Tue, 22 Aug 2006 16:59:51 +0000(svn r6051) -Fix r6047: forgot many times a ! :(
truelight [Tue, 22 Aug 2006 16:59:51 +0000] rev 4350
(svn r6051) -Fix r6047: forgot many times a ! :(

Tue, 22 Aug 2006 16:38:50 +0000(svn r6050) -Codechange: mass-renamed SignStruct -> Sign and ss -> si. Now functions and variables all match eachother
truelight [Tue, 22 Aug 2006 16:38:50 +0000] rev 4349
(svn r6050) -Codechange: mass-renamed SignStruct -> Sign and ss -> si. Now functions and variables all match eachother

Tue, 22 Aug 2006 16:22:07 +0000(svn r6049) -Codechange: forgot EngineRenew in r6047
truelight [Tue, 22 Aug 2006 16:22:07 +0000] rev 4348
(svn r6049) -Codechange: forgot EngineRenew in r6047
-Codechange: cleaned up the EngineRenew code a bit (coding style mostly)
-Codechange: forgot the correct comment in station_cmd
-Codechange: move pool-stuff to engine.h, like we always do

Tue, 22 Aug 2006 15:39:22 +0000(svn r6048) -Codechange: all InitializeXXX are plural, just not Depot
truelight [Tue, 22 Aug 2006 15:39:22 +0000] rev 4347
(svn r6048) -Codechange: all InitializeXXX are plural, just not Depot

Tue, 22 Aug 2006 15:33:35 +0000(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones
truelight [Tue, 22 Aug 2006 15:33:35 +0000] rev 4346
(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones
-Codechange: use IsValidXXX where ever possible
Note: both changes to prepare for new pool system, which needs those changes.
For every pool there are 2 ugly lines, which will be removed when done
implementing new pool system.
Based on FS#13 by blathijs, partly implemented.

Tue, 22 Aug 2006 15:23:25 +0000(svn r6046) CodeChange : Rename WWT_5 Widget type to WWT_LABEL : a centered label
belugas [Tue, 22 Aug 2006 15:23:25 +0000] rev 4345
(svn r6046) CodeChange : Rename WWT_5 Widget type to WWT_LABEL : a centered label
CodeChange : Move almost all fixed strings from ON_PAINT event to Widget array using WWT_LABEL.
Feature : All "Select Refit Cargo" are now centered, instead of been left aligned

Tue, 22 Aug 2006 14:38:37 +0000(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
rubidium [Tue, 22 Aug 2006 14:38:37 +0000] rev 4344
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.

Tue, 22 Aug 2006 13:57:51 +0000(svn r6044) WebTranslator2 update to 2006-08-22 15:57:27
miham [Tue, 22 Aug 2006 13:57:51 +0000] rev 4343
(svn r6044) WebTranslator2 update to 2006-08-22 15:57:27
danish - 13 fixed by Bjarni (3), trenskow (10)
french - 1 fixed by glx (1)
hungarian - 1 fixed by miham (1)

Tue, 22 Aug 2006 12:15:51 +0000(svn r6043) -Codechange: use wrapper if they are available
truelight [Tue, 22 Aug 2006 12:15:51 +0000] rev 4342
(svn r6043) -Codechange: use wrapper if they are available

Mon, 21 Aug 2006 21:49:44 +0000(svn r6042) WebTranslator2 update to 2006-08-21 23:49:18
miham [Mon, 21 Aug 2006 21:49:44 +0000] rev 4341
(svn r6042) WebTranslator2 update to 2006-08-21 23:49:18
french - 2 fixed by glx (2)
german - 49 fixed by chu (49)
polish - 1 fixed by meush (1)
portuguese - 3 fixed by izhirahider (3)

Mon, 21 Aug 2006 18:18:02 +0000(svn r6041) -Fix r6040: forgot to declare a function in viewport.c
truelight [Mon, 21 Aug 2006 18:18:02 +0000] rev 4340
(svn r6041) -Fix r6040: forgot to declare a function in viewport.c

Mon, 21 Aug 2006 17:41:04 +0000(svn r6040) -Add: when clicking twice on a Location Button, the SmallMap centers on your position (based on FS#54 by thomasdev)
truelight [Mon, 21 Aug 2006 17:41:04 +0000] rev 4339
(svn r6040) -Add: when clicking twice on a Location Button, the SmallMap centers on your position (based on FS#54 by thomasdev)
-Add: when clicking twice in SmallMap on a position, it centers there (based on FS#54 by thomasdev)
-Add: add a button in SmallMap that centers the SmallMap on your current position (based on FS#54 by thomasdev)

Mon, 21 Aug 2006 16:35:47 +0000(svn r6039) -Fix: [newGRF] FS#287 Bugfix for error in NewGRF callback 31 code for aircraft (Mart3p)
bjarni [Mon, 21 Aug 2006 16:35:47 +0000] rev 4338
(svn r6039) -Fix: [newGRF] FS#287 Bugfix for error in NewGRF callback 31 code for aircraft (Mart3p)
introduced in rev 5822

Mon, 21 Aug 2006 14:59:58 +0000(svn r6038) -Codechange: move mousewheel code to event WE_MOUSEWHEEL instead of a general function that handles that
truelight [Mon, 21 Aug 2006 14:59:58 +0000] rev 4337
(svn r6038) -Codechange: move mousewheel code to event WE_MOUSEWHEEL instead of a general function that handles that
-Codechange: use always 'e' for WindowsEvent, neverr 'we'

Mon, 21 Aug 2006 14:59:23 +0000(svn r6037) -Fix: never allow scrolling the map in the main menu (scroll-settings weren't reset if switched to mainmenu)
truelight [Mon, 21 Aug 2006 14:59:23 +0000] rev 4336
(svn r6037) -Fix: never allow scrolling the map in the main menu (scroll-settings weren't reset if switched to mainmenu)

Mon, 21 Aug 2006 14:34:59 +0000(svn r6036) -Codechange: do not handle SCROLL in a central function, but let windows handle them theirself. Added WE_SCROLL for this.
truelight [Mon, 21 Aug 2006 14:34:59 +0000] rev 4335
(svn r6036) -Codechange: do not handle SCROLL in a central function, but let windows handle them theirself. Added WE_SCROLL for this.

Mon, 21 Aug 2006 13:04:13 +0000(svn r6035) -Revert r5900 which supposedly fixed an invalid warning caused by buggy MS software
Darkvater [Mon, 21 Aug 2006 13:04:13 +0000] rev 4334
(svn r6035) -Revert r5900 which supposedly fixed an invalid warning caused by buggy MS software

Mon, 21 Aug 2006 09:22:44 +0000(svn r6032) -Fix: when a farm is gone, remove the fields when it is full grown and should be harvest (not before that)
truelight [Mon, 21 Aug 2006 09:22:44 +0000] rev 4333
(svn r6032) -Fix: when a farm is gone, remove the fields when it is full grown and should be harvest (not before that)

Sun, 20 Aug 2006 21:53:56 +0000(svn r6023) WebTranslator2 update to 2006-08-20 23:53:33
miham [Sun, 20 Aug 2006 21:53:56 +0000] rev 4332
(svn r6023) WebTranslator2 update to 2006-08-20 23:53:33
german - 1 fixed by Neonox (1)
polish - 2 fixed, 2 changed by meush (4)
portuguese - 2 fixed by izhirahider (2)

Sun, 20 Aug 2006 20:21:00 +0000(svn r6013) -Fix: some newgrf properties returned the date in the new format where the newgrf's expect the original format. Thanks to michi_cc for finding these and providing the initial patch.
rubidium [Sun, 20 Aug 2006 20:21:00 +0000] rev 4331
(svn r6013) -Fix: some newgrf properties returned the date in the new format where the newgrf's expect the original format. Thanks to michi_cc for finding these and providing the initial patch.

Sun, 20 Aug 2006 19:31:58 +0000(svn r6005) -Cleanup: introduce IndustryID and use it
rubidium [Sun, 20 Aug 2006 19:31:58 +0000] rev 4330
(svn r6005) -Cleanup: introduce IndustryID and use it
-Cleanup: use TownID and StationID for two instances of uint16

Sun, 20 Aug 2006 19:05:28 +0000(svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant.
rubidium [Sun, 20 Aug 2006 19:05:28 +0000] rev 4329
(svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant.

Sun, 20 Aug 2006 18:44:26 +0000(svn r6001) -Feature: when removing a farm, his farmland is removed too (over time) (based on peter1138's patch, FS#82)
truelight [Sun, 20 Aug 2006 18:44:26 +0000] rev 4328
(svn r6001) -Feature: when removing a farm, his farmland is removed too (over time) (based on peter1138's patch, FS#82)
To make this to work, in older games farmland is removed on load, and replanted

Sun, 20 Aug 2006 18:43:43 +0000(svn r6000) WebTranslator2 update to 2006-08-20 20:43:15
miham [Sun, 20 Aug 2006 18:43:43 +0000] rev 4327
(svn r6000) WebTranslator2 update to 2006-08-20 20:43:15
danish - 24 fixed, 1 changed by Bjarni (25)
hungarian - 2 fixed by miham (2)
polish - 2 fixed, 3 changed by meush (5)
portuguese - 3 fixed by izhirahider (3)
turkish - 54 fixed by jnmbk (54)

Sun, 20 Aug 2006 18:40:57 +0000(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
rubidium [Sun, 20 Aug 2006 18:40:57 +0000] rev 4326
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
The game date subsystem now allows someone to start in the year 0 and continue
up to the year 5 000 000. However, you currently cannot build anything before
1920 as there is no newgrf support for dates before 1920 or after 2090 yet.

Sun, 20 Aug 2006 17:22:03 +0000(svn r5993) -Fix r5974: a cause-no-warning commit caused a warning ;) (glx)
truelight [Sun, 20 Aug 2006 17:22:03 +0000] rev 4325
(svn r5993) -Fix r5974: a cause-no-warning commit caused a warning ;) (glx)

Sun, 20 Aug 2006 13:48:04 +0000(svn r5978) -Add: allow a switch in Makefile.config to disable threads in OpenTTD (no matter what system you are on). Only useful for testing.
truelight [Sun, 20 Aug 2006 13:48:04 +0000] rev 4324
(svn r5978) -Add: allow a switch in Makefile.config to disable threads in OpenTTD (no matter what system you are on). Only useful for testing.

Sun, 20 Aug 2006 13:39:33 +0000(svn r5977) -Fix [FS#78]: never set I-am-a-thread bool to true IN the thread. Machines with
truelight [Sun, 20 Aug 2006 13:39:33 +0000] rev 4323
(svn r5977) -Fix [FS#78]: never set I-am-a-thread bool to true IN the thread. Machines with
dualcore can be faster then you want, and therefor create 2 threads, while
you made the bool to make sure there is never more then 1 thread of this type.

Sun, 20 Aug 2006 12:39:17 +0000(svn r5975) -Cleanup: use ORIGINAL_BASE_YEAR & ORIGINAL_MAX_YEAR where the functions really depend on the original date format.
rubidium [Sun, 20 Aug 2006 12:39:17 +0000] rev 4322
(svn r5975) -Cleanup: use ORIGINAL_BASE_YEAR & ORIGINAL_MAX_YEAR where the functions really depend on the original date format.
-Cleanup: use DAYS_TILL_ORIGINAL_BASE_YEAR where the date variables are in the old date format and conversions are needed.
-Cleanup: replace one (forgotten) instance of uint16 with Date.

Sun, 20 Aug 2006 12:09:32 +0000(svn r5974) -Codechange: added casts all around the place to make Windows 64bit happy (michi_cc)
truelight [Sun, 20 Aug 2006 12:09:32 +0000] rev 4321
(svn r5974) -Codechange: added casts all around the place to make Windows 64bit happy (michi_cc)

Sun, 20 Aug 2006 12:07:27 +0000(svn r5973) -Codechange: md5_append only uses size_t as nbytes param, so use that (michi_cc)
truelight [Sun, 20 Aug 2006 12:07:27 +0000] rev 4320
(svn r5973) -Codechange: md5_append only uses size_t as nbytes param, so use that (michi_cc)

Sun, 20 Aug 2006 12:03:39 +0000(svn r5972) -Fix: usr strrchr instead of your own function (tnx Darkvater)
truelight [Sun, 20 Aug 2006 12:03:39 +0000] rev 4319
(svn r5972) -Fix: usr strrchr instead of your own function (tnx Darkvater)
-Codechange: added some comments and const correctness (Darkvater)

Sun, 20 Aug 2006 11:51:10 +0000(svn r5971) -Fix: wrong struct in assert_compile (thomasdev)
truelight [Sun, 20 Aug 2006 11:51:10 +0000] rev 4318
(svn r5971) -Fix: wrong struct in assert_compile (thomasdev)

Sun, 20 Aug 2006 11:41:34 +0000(svn r5970) -Fix [FS#49]: town-growth removed houses under construction to make way for road. Not wanted behavoir (Rubidium)
truelight [Sun, 20 Aug 2006 11:41:34 +0000] rev 4317
(svn r5970) -Fix [FS#49]: town-growth removed houses under construction to make way for road. Not wanted behavoir (Rubidium)

Sun, 20 Aug 2006 11:18:46 +0000(svn r5969) -Fix r5968: windows doesn't know strncasecmp, but called it strnicmp (michi_cc)
truelight [Sun, 20 Aug 2006 11:18:46 +0000] rev 4316
(svn r5969) -Fix r5968: windows doesn't know strncasecmp, but called it strnicmp (michi_cc)

Sun, 20 Aug 2006 10:51:27 +0000(svn r5968) -Feature: add auto-completion in chat-window. It completes Player-Names and
truelight [Sun, 20 Aug 2006 10:51:27 +0000] rev 4315
(svn r5968) -Feature: add auto-completion in chat-window. It completes Player-Names and
Town-Names (that order) using <tab>. Based on FS#28 by egladil.

Sun, 20 Aug 2006 10:50:23 +0000(svn r5967) -Change: use right alignment for the year in the player's balance window instead of centering (about) 'string width' / 2 from the right edge
rubidium [Sun, 20 Aug 2006 10:50:23 +0000] rev 4314
(svn r5967) -Change: use right alignment for the year in the player's balance window instead of centering (about) 'string width' / 2 from the right edge

Sun, 20 Aug 2006 10:45:36 +0000(svn r5966) -Fix: prevent that the industry placement's terraforming checks can leave the map on the southern side
rubidium [Sun, 20 Aug 2006 10:45:36 +0000] rev 4313
(svn r5966) -Fix: prevent that the industry placement's terraforming checks can leave the map on the southern side

Sun, 20 Aug 2006 09:52:15 +0000(svn r5965) -Feature: FS#261 Catalan Town Names generator (arnau)
bjarni [Sun, 20 Aug 2006 09:52:15 +0000] rev 4312
(svn r5965) -Feature: FS#261 Catalan Town Names generator (arnau)

Sun, 20 Aug 2006 09:26:58 +0000(svn r5964) -Feature: FS#131 Slovenian currency (MeusH)
bjarni [Sun, 20 Aug 2006 09:26:58 +0000] rev 4311
(svn r5964) -Feature: FS#131 Slovenian currency (MeusH)

Sun, 20 Aug 2006 07:04:04 +0000(svn r5963) WebTranslator2 update to 2006-08-20 09:03:43
miham [Sun, 20 Aug 2006 07:04:04 +0000] rev 4310
(svn r5963) WebTranslator2 update to 2006-08-20 09:03:43
french - 7 changed by glx (7)
polish - 77 fixed, 18 changed by meush (95)

Sat, 19 Aug 2006 21:30:40 +0000(svn r5959) -Change: size selection dropdowns placement in 'Scenario type' window
glx [Sat, 19 Aug 2006 21:30:40 +0000] rev 4309
(svn r5959) -Change: size selection dropdowns placement in 'Scenario type' window

Sat, 19 Aug 2006 19:45:04 +0000(svn r5955) -Fix r5728: 2 very important lines for ShowQueryString where removed by excident.
truelight [Sat, 19 Aug 2006 19:45:04 +0000] rev 4308
(svn r5955) -Fix r5728: 2 very important lines for ShowQueryString where removed by excident.
Because of this you couldn't join servers with passwords, and more of those
problems. (tnx Mucht)

Sat, 19 Aug 2006 18:19:41 +0000(svn r5954) WebTranslator2 update to 2006-08-19 20:17:26
miham [Sat, 19 Aug 2006 18:19:41 +0000] rev 4307
(svn r5954) WebTranslator2 update to 2006-08-19 20:17:26
dutch - 54 fixed by webfreakz (54)
french - 74 fixed by glx (74)
hungarian - 79 fixed by miham (79)
norwegian - 2 fixed by oletk (2)
polish - 1 changed by meush (1)
portuguese - 15 fixed by izhirahider (15)

Sat, 19 Aug 2006 16:33:10 +0000(svn r5953) -Fix: tooltip for FlatLand had wrong color (tnx glx)
truelight [Sat, 19 Aug 2006 16:33:10 +0000] rev 4306
(svn r5953) -Fix: tooltip for FlatLand had wrong color (tnx glx)

Sat, 19 Aug 2006 16:30:05 +0000(svn r5952) - struct GRFText{Entry,} are private to newgrf_text.c
tron [Sat, 19 Aug 2006 16:30:05 +0000] rev 4305
(svn r5952) - struct GRFText{Entry,} are private to newgrf_text.c
- use a variable size array instead of another malloc()

Sat, 19 Aug 2006 15:24:40 +0000(svn r5951) - Codechange: GetVehicleOutOfTunnelTile() never did anything, and making it work properly only resulted in massive performance drops, and it not working properly also seemed to work, so make it not work properly once again.
Darkvater [Sat, 19 Aug 2006 15:24:40 +0000] rev 4304
(svn r5951) - Codechange: GetVehicleOutOfTunnelTile() never did anything, and making it work properly only resulted in massive performance drops, and it not working properly also seemed to work, so make it not work properly once again.

Sat, 19 Aug 2006 12:01:04 +0000(svn r5950) -Fix: don't show Vital Windows EVER if you go to GM_MENU (tnx Darkvater)
truelight [Sat, 19 Aug 2006 12:01:04 +0000] rev 4303
(svn r5950) -Fix: don't show Vital Windows EVER if you go to GM_MENU (tnx Darkvater)

Sat, 19 Aug 2006 11:50:34 +0000(svn r5949) -Fix: vs80 project file was broken (tnx webfreakz)
truelight [Sat, 19 Aug 2006 11:50:34 +0000] rev 4302
(svn r5949) -Fix: vs80 project file was broken (tnx webfreakz)

Sat, 19 Aug 2006 11:28:41 +0000(svn r5948) -Fix: inversed check caused oringal land-generator to put industries on mountains (tnx Darkvater)
truelight [Sat, 19 Aug 2006 11:28:41 +0000] rev 4301
(svn r5948) -Fix: inversed check caused oringal land-generator to put industries on mountains (tnx Darkvater)

Sat, 19 Aug 2006 10:00:30 +0000(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight [Sat, 19 Aug 2006 10:00:30 +0000] rev 4300
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
- New optional landscape generator (TerraGenesis Perlin)
- Load heightmaps (either BMP or PNG)
- Progress dialog while generating worlds (no longer a 'hanging' screen)
- New dialogs for NewGame, Create Scenario and Play Heightmap
- Easier to configure your landscape
- More things to configure (tree-placer, ..)
- Speedup of world generation
- New console command 'restart': restart the map EXACTLY as it was when you
first started it (needs a game made after or with this commit)
- New console command 'getseed': get the seed of your map and share it with
others (of course only works with generated maps)
- Many new, world generation related, things
- Many internal cleanups and rewrites
Many tnx to those people who helped making this:
Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic)
Many tnx to those who helped testing:
Arnau, Bjarni, and tokai (alfabetic)
And to all other people who helped testing and sending comments / bugs
Stats: 673 lines changed, 3534 new lines, 79 new strings

Sat, 19 Aug 2006 09:31:22 +0000(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight [Sat, 19 Aug 2006 09:31:22 +0000] rev 4299
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
allow certain patterns (like numbers only)

Sat, 19 Aug 2006 09:23:48 +0000(svn r5943) -Merge TGP (part r5725): -Codechange: renamed Thread to OTTDThread, as Windows
truelight [Sat, 19 Aug 2006 09:23:48 +0000] rev 4298
(svn r5943) -Merge TGP (part r5725): -Codechange: renamed Thread to OTTDThread, as Windows
(who else) uses Thread in winbase.h, and starts complaining if you define it
otherwise (with weird, undefined errors) (tnx Arnau and Rubidium)

Thu, 17 Aug 2006 20:22:35 +0000(svn r5934) -Cleanup: forgot some conversions to Year and to Date
rubidium [Thu, 17 Aug 2006 20:22:35 +0000] rev 4297
(svn r5934) -Cleanup: forgot some conversions to Year and to Date
-Cleanup: use _cur_year instead of _date for some (year based) comparisons
-Cleanup: remove a magic number in favour of another (less) magic number

Wed, 16 Aug 2006 17:58:43 +0000(svn r5929) WebTranslator2 update to 2006-08-16 19:58:20
miham [Wed, 16 Aug 2006 17:58:43 +0000] rev 4296
(svn r5929) WebTranslator2 update to 2006-08-16 19:58:20
czech - 2 fixed by Hadez (2)
slovak - 2 fixed by lengyel (2)

Wed, 16 Aug 2006 12:07:24 +0000(svn r5928) -Cleanup: remove ConvertIntDate and use ConvertYMDToDate as ConvertIntDate was only called with Years.
rubidium [Wed, 16 Aug 2006 12:07:24 +0000] rev 4295
(svn r5928) -Cleanup: remove ConvertIntDate and use ConvertYMDToDate as ConvertIntDate was only called with Years.

Wed, 16 Aug 2006 11:49:52 +0000(svn r5927) -Cleanup: check against _cur_year instead of _date when determining the availability of airports, as they only become available at the beginning of a year.
rubidium [Wed, 16 Aug 2006 11:49:52 +0000] rev 4294
(svn r5927) -Cleanup: check against _cur_year instead of _date when determining the availability of airports, as they only become available at the beginning of a year.

Wed, 16 Aug 2006 11:39:55 +0000(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
rubidium [Wed, 16 Aug 2006 11:39:55 +0000] rev 4293
(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
-Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year

Wed, 16 Aug 2006 07:43:15 +0000(svn r5925) WebTranslator2 update to 2006-08-16 09:42:57
miham [Wed, 16 Aug 2006 07:43:15 +0000] rev 4292
(svn r5925) WebTranslator2 update to 2006-08-16 09:42:57
turkish - 2 fixed by jnmbk (2)

Wed, 16 Aug 2006 06:06:48 +0000(svn r5924) Revert accidently commited files
tron [Wed, 16 Aug 2006 06:06:48 +0000] rev 4291
(svn r5924) Revert accidently commited files

Wed, 16 Aug 2006 06:05:44 +0000(svn r5923) Fix 'make depend' which was broken in r3574 (it just did nothing)
tron [Wed, 16 Aug 2006 06:05:44 +0000] rev 4290
(svn r5923) Fix 'make depend' which was broken in r3574 (it just did nothing)

Tue, 15 Aug 2006 16:55:40 +0000(svn r5919) -Cleanup: use the type Date when the variable really is a date
rubidium [Tue, 15 Aug 2006 16:55:40 +0000] rev 4289
(svn r5919) -Cleanup: use the type Date when the variable really is a date

Tue, 15 Aug 2006 16:49:48 +0000(svn r5918) -Cleanup: rename ConvertDayToYMD/ConvertYMDToDay as they really convert a Date to/from a YearMonthDay.
rubidium [Tue, 15 Aug 2006 16:49:48 +0000] rev 4288
(svn r5918) -Cleanup: rename ConvertDayToYMD/ConvertYMDToDay as they really convert a Date to/from a YearMonthDay.
-Cleanup: swap ConvertDateToYMD's parameters to make the order consistent with the name of the function.

Tue, 15 Aug 2006 15:27:30 +0000(svn r5917) -Fix: [clone vehicles] FS#275 Bugfix: Cloned Road Vehicles Are Not Refitted To Correct Cargo (Mart3p)
bjarni [Tue, 15 Aug 2006 15:27:30 +0000] rev 4287
(svn r5917) -Fix: [clone vehicles] FS#275 Bugfix: Cloned Road Vehicles Are Not Refitted To Correct Cargo (Mart3p)

Tue, 15 Aug 2006 15:18:03 +0000(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
rubidium [Tue, 15 Aug 2006 15:18:03 +0000] rev 4286
(svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
-Cleanup: replace some magic '1920' values with BASE_YEAR.

Tue, 15 Aug 2006 14:52:17 +0000(svn r5915) -Cleanup: some variables were named *_date while they were only holding years; rename these variables to match this.
rubidium [Tue, 15 Aug 2006 14:52:17 +0000] rev 4285
(svn r5915) -Cleanup: some variables were named *_date while they were only holding years; rename these variables to match this.

Tue, 15 Aug 2006 14:38:43 +0000(svn r5914) -Fix [FS#235]: Bugfix for errors in FindNearestHangar function in aircraft_cmd.c (mart3p).
Darkvater [Tue, 15 Aug 2006 14:38:43 +0000] rev 4284
(svn r5914) -Fix [FS#235]: Bugfix for errors in FindNearestHangar function in aircraft_cmd.c (mart3p).

Tue, 15 Aug 2006 14:27:53 +0000(svn r5913) -Fix (r5906): GetVehicleOutOfTunnelTile did assert when the vehicles tile location is the exit of the tunnel.
rubidium [Tue, 15 Aug 2006 14:27:53 +0000] rev 4283
(svn r5913) -Fix (r5906): GetVehicleOutOfTunnelTile did assert when the vehicles tile location is the exit of the tunnel.

Tue, 15 Aug 2006 13:31:43 +0000(svn r5912) -Fix: Sort order for produced amount and transported percentage was reversed in the industry list
tron [Tue, 15 Aug 2006 13:31:43 +0000] rev 4282
(svn r5912) -Fix: Sort order for produced amount and transported percentage was reversed in the industry list
Also slightly change these sorting criteria: If an industry produces more than one type of cargo sort by the sum (amount) resp. minimum (%) instead of the mean

Tue, 15 Aug 2006 11:06:32 +0000(svn r5911) -Fix [FS#215]: Discard upper bits of TrackdirBitsToTrackBits result.
matthijs [Tue, 15 Aug 2006 11:06:32 +0000] rev 4281
(svn r5911) -Fix [FS#215]: Discard upper bits of TrackdirBitsToTrackBits result.

Tue, 15 Aug 2006 09:28:27 +0000(svn r5910) Fix some more warnings on MSVC by using (void*) casts. Followup of r5907.
Darkvater [Tue, 15 Aug 2006 09:28:27 +0000] rev 4280
(svn r5910) Fix some more warnings on MSVC by using (void*) casts. Followup of r5907.

Tue, 15 Aug 2006 09:03:35 +0000(svn r5909) -Fix (r5908): silence signedness warning
rubidium [Tue, 15 Aug 2006 09:03:35 +0000] rev 4279
(svn r5909) -Fix (r5908): silence signedness warning

Tue, 15 Aug 2006 07:37:01 +0000(svn r5908) - Codechange (r5903): Move the retrieval of the new value of a patch to console_cmds.c, so there is no need for that function in settings.c
Darkvater [Tue, 15 Aug 2006 07:37:01 +0000] rev 4278
(svn r5908) - Codechange (r5903): Move the retrieval of the new value of a patch to console_cmds.c, so there is no need for that function in settings.c

Tue, 15 Aug 2006 07:07:17 +0000(svn r5907) Remove more indirection by using pointers instead of IDs. Also fix some bogus warnings on MSVC by using (void*) casts
tron [Tue, 15 Aug 2006 07:07:17 +0000] rev 4277
(svn r5907) Remove more indirection by using pointers instead of IDs. Also fix some bogus warnings on MSVC by using (void*) casts

Tue, 15 Aug 2006 01:28:07 +0000(svn r5906) -Fix [ 1203146 ]: GetVehicleOutOfTunnelTile always returned v->tile, now the exit-tile of the tunnel based on the vehicle's direction is correctly returned. Based on a patch by glx.
Darkvater [Tue, 15 Aug 2006 01:28:07 +0000] rev 4276
(svn r5906) -Fix [ 1203146 ]: GetVehicleOutOfTunnelTile always returned v->tile, now the exit-tile of the tunnel based on the vehicle's direction is correctly returned. Based on a patch by glx.

Tue, 15 Aug 2006 00:26:24 +0000(svn r5903) -Fix [FS#170]: Changing patch settings through the console didn't accept on/off or true/false.
Darkvater [Tue, 15 Aug 2006 00:26:24 +0000] rev 4275
(svn r5903) -Fix [FS#170]: Changing patch settings through the console didn't accept on/off or true/false.

Tue, 15 Aug 2006 00:19:01 +0000(svn r5902) -Fix [FS#26]: BIGMULS return-type fix (Graphite)
Darkvater [Tue, 15 Aug 2006 00:19:01 +0000] rev 4274
(svn r5902) -Fix [FS#26]: BIGMULS return-type fix (Graphite)

Tue, 15 Aug 2006 00:14:57 +0000(svn r5901) -Fix [FS#253]: Differing price calculation for tunnels depending on starting point
Darkvater [Tue, 15 Aug 2006 00:14:57 +0000] rev 4273
(svn r5901) -Fix [FS#253]: Differing price calculation for tunnels depending on starting point

Mon, 14 Aug 2006 23:27:06 +0000(svn r5900) -Fix [FS#84]: Warning silencing fix for OpenTTD on Windows x64 (michi_cc)
Darkvater [Mon, 14 Aug 2006 23:27:06 +0000] rev 4272
(svn r5900) -Fix [FS#84]: Warning silencing fix for OpenTTD on Windows x64 (michi_cc)

Mon, 14 Aug 2006 23:11:59 +0000(svn r5899) - Fix [FS#242]: Multistop not working when using NPF (r5033) (mart3p)
Darkvater [Mon, 14 Aug 2006 23:11:59 +0000] rev 4271
(svn r5899) - Fix [FS#242]: Multistop not working when using NPF (r5033) (mart3p)

Mon, 14 Aug 2006 22:34:43 +0000(svn r5898) -Fix [FS#249]: Bugfix: Goto Depot not always working for road vehicles. (mart3p)
Darkvater [Mon, 14 Aug 2006 22:34:43 +0000] rev 4270
(svn r5898) -Fix [FS#249]: Bugfix: Goto Depot not always working for road vehicles. (mart3p)

Mon, 14 Aug 2006 22:23:13 +0000(svn r5897) -Fix [ 1519167 ] Bus trying to service in depot of other company (mart3p)
Darkvater [Mon, 14 Aug 2006 22:23:13 +0000] rev 4269
(svn r5897) -Fix [ 1519167 ] Bus trying to service in depot of other company (mart3p)

Mon, 14 Aug 2006 21:02:48 +0000(svn r5896) Remove pointless indirection similar to r5894 and remove an unnecessary global variable
tron [Mon, 14 Aug 2006 21:02:48 +0000] rev 4268
(svn r5896) Remove pointless indirection similar to r5894 and remove an unnecessary global variable

Mon, 14 Aug 2006 20:37:15 +0000(svn r5895) Remove dead code
tron [Mon, 14 Aug 2006 20:37:15 +0000] rev 4267
(svn r5895) Remove dead code

Mon, 14 Aug 2006 20:25:29 +0000(svn r5894) Remove a totally unnecessary indirection in the vehicle sorter code. Less code, less data, simply better
tron [Mon, 14 Aug 2006 20:25:29 +0000] rev 4266
(svn r5894) Remove a totally unnecessary indirection in the vehicle sorter code. Less code, less data, simply better

Mon, 14 Aug 2006 18:39:20 +0000(svn r5893) WebTranslator2 update to 2006-08-14 20:38:49
miham [Mon, 14 Aug 2006 18:39:20 +0000] rev 4265
(svn r5893) WebTranslator2 update to 2006-08-14 20:38:49
dutch - 2 fixed by webfreakz (2)
french - 2 fixed by glx (2)
german - 2 fixed by Neonox (2)
hungarian - 2 fixed by miham (2)
polish - 2 fixed by meush (2)
portuguese - 2 fixed by izhirahider (2)
ukrainian - 1 fixed by znikoz (1)

Mon, 14 Aug 2006 17:08:45 +0000(svn r5892) -Fix (r5887): silence MSVC warning(s) about signedness of some comparisons with _date.
rubidium [Mon, 14 Aug 2006 17:08:45 +0000] rev 4264
(svn r5892) -Fix (r5887): silence MSVC warning(s) about signedness of some comparisons with _date.