Sun, 13 Nov 2005 21:16:34 +0000(svn r3176) Use proper types, not some variants of int
tron [Sun, 13 Nov 2005 21:16:34 +0000] rev 2634
(svn r3176) Use proper types, not some variants of int

Sun, 13 Nov 2005 18:07:45 +0000(svn r3175) - Updated OS/2 project file to include station_newgrf.c
orudge [Sun, 13 Nov 2005 18:07:45 +0000] rev 2633
(svn r3175) - Updated OS/2 project file to include station_newgrf.c

Sun, 13 Nov 2005 16:30:04 +0000(svn r3174) - Fix: fix compilation for VS.NET2003 and VS6 (missing sourcefile(s) from project)
Darkvater [Sun, 13 Nov 2005 16:30:04 +0000] rev 2632
(svn r3174) - Fix: fix compilation for VS.NET2003 and VS6 (missing sourcefile(s) from project)

Sun, 13 Nov 2005 14:54:09 +0000(svn r3173) Use the trinary operator and switch to improve readability
tron [Sun, 13 Nov 2005 14:54:09 +0000] rev 2631
(svn r3173) Use the trinary operator and switch to improve readability
Also align short cases nicely

Sun, 13 Nov 2005 13:43:55 +0000(svn r3172) static, const
tron [Sun, 13 Nov 2005 13:43:55 +0000] rev 2630
(svn r3172) static, const

Sat, 12 Nov 2005 11:10:12 +0000(svn r3171) - Codechange: remove static _dropdown_disabled/_dropdown_hidden variables, as a window already contains this information.
peter1138 [Sat, 12 Nov 2005 11:10:12 +0000] rev 2629
(svn r3171) - Codechange: remove static _dropdown_disabled/_dropdown_hidden variables, as a window already contains this information.

Sat, 12 Nov 2005 09:30:52 +0000(svn r3170) - NewGRF: make ttdpatch flags to reflect patch option status, and added some more values.
peter1138 [Sat, 12 Nov 2005 09:30:52 +0000] rev 2628
(svn r3170) - NewGRF: make ttdpatch flags to reflect patch option status, and added some more values.

Sat, 12 Nov 2005 08:51:46 +0000(svn r3169) Little bit of coding style fixing, and change from value to lengthof()
peter1138 [Sat, 12 Nov 2005 08:51:46 +0000] rev 2627
(svn r3169) Little bit of coding style fixing, and change from value to lengthof()

Sat, 12 Nov 2005 00:29:13 +0000(svn r3168) - NewGRF: Fix "typo" in waypoint drawer :/
peter1138 [Sat, 12 Nov 2005 00:29:13 +0000] rev 2626
(svn r3168) - NewGRF: Fix "typo" in waypoint drawer :/

Sat, 12 Nov 2005 00:19:34 +0000(svn r3167) - NewGRF: Start moving custom station code to separate files.
peter1138 [Sat, 12 Nov 2005 00:19:34 +0000] rev 2625
(svn r3167) - NewGRF: Start moving custom station code to separate files.
Rewrite handling of station classes.
Allow for more than 8 station tile layouts.
Start of code to unload custom stations.

Fri, 11 Nov 2005 20:34:16 +0000(svn r3166) Constify read-only accesses of custom stations
peter1138 [Fri, 11 Nov 2005 20:34:16 +0000] rev 2624
(svn r3166) Constify read-only accesses of custom stations

Thu, 10 Nov 2005 17:21:05 +0000(svn r3163) Include header for toupper()
tron [Thu, 10 Nov 2005 17:21:05 +0000] rev 2623
(svn r3163) Include header for toupper()

Thu, 10 Nov 2005 15:23:55 +0000(svn r3162) -Fix: renamed 'Message' to 'WindowMessage', a struct named 'Message' already
truelight [Thu, 10 Nov 2005 15:23:55 +0000] rev 2622
(svn r3162) -Fix: renamed 'Message' to 'WindowMessage', a struct named 'Message' already
exists on MorphOS

Wed, 09 Nov 2005 11:32:15 +0000(svn r3159) Remove the read-only variable _no_button_sound
tron [Wed, 09 Nov 2005 11:32:15 +0000] rev 2621
(svn r3159) Remove the read-only variable _no_button_sound

Wed, 09 Nov 2005 09:16:08 +0000(svn r3158) - PBS: [ 1252192 ] Fix an assertion failure due to possible junk data in pre-PBS savegames. This will not correct pre-PBS savegames loaded and saved since PBS was introduced. (thanks glx)
peter1138 [Wed, 09 Nov 2005 09:16:08 +0000] rev 2620
(svn r3158) - PBS: [ 1252192 ] Fix an assertion failure due to possible junk data in pre-PBS savegames. This will not correct pre-PBS savegames loaded and saved since PBS was introduced. (thanks glx)

Wed, 09 Nov 2005 07:25:55 +0000(svn r3157) - Feature: Added patch option to link the terraform toolbar to the rail, road, water and airport toolbars. If enabled, the terraform toolbar will open and close with those toolbars.
peter1138 [Wed, 09 Nov 2005 07:25:55 +0000] rev 2619
(svn r3157) - Feature: Added patch option to link the terraform toolbar to the rail, road, water and airport toolbars. If enabled, the terraform toolbar will open and close with those toolbars.

Tue, 08 Nov 2005 23:18:09 +0000(svn r3156) -Fix: removed some cases where autoreplace windows were redrawn when nothing was changed
bjarni [Tue, 08 Nov 2005 23:18:09 +0000] rev 2618
(svn r3156) -Fix: removed some cases where autoreplace windows were redrawn when nothing was changed
due to the FOR_ALL_VEHICLES(), redrawing those windows are slow

Mon, 07 Nov 2005 23:20:47 +0000(svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too long trains
bjarni [Mon, 07 Nov 2005 23:20:47 +0000] rev 2617
(svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too long trains
-Trains will now remember the length of stations it visits and sell cars
when being autoreplaced if they became too long
-If it needs to remove cars, then it starts from the front and sells
all it can find until the train is short enough
-This only works for trains, that knows the station length of the route
so a full uninterrupted run is needed
-a train needs 1-2 runs to detect if the shortest station is expanded
-This feature can be turned on and off in the train replace window
and each company can have it's own setting
-NOTE: minor savegame version bump

Mon, 07 Nov 2005 17:31:21 +0000(svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at a typo, shall we :P
Darkvater [Mon, 07 Nov 2005 17:31:21 +0000] rev 2616
(svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at a typo, shall we :P

Mon, 07 Nov 2005 16:19:45 +0000(svn r3153) - Feature: [ 1276827 ] Drag and drop rocky areas in scenario editor (MeusH-ish)
Darkvater [Mon, 07 Nov 2005 16:19:45 +0000] rev 2615
(svn r3153) - Feature: [ 1276827 ] Drag and drop rocky areas in scenario editor (MeusH-ish)

Mon, 07 Nov 2005 14:34:23 +0000(svn r3152) - NewGRF: [ 1340189 ] Action 7/9 new value : is it TTDPatch or OpenTTD? (belugas)
peter1138 [Mon, 07 Nov 2005 14:34:23 +0000] rev 2614
(svn r3152) - NewGRF: [ 1340189 ] Action 7/9 new value : is it TTDPatch or OpenTTD? (belugas)

Mon, 07 Nov 2005 13:30:43 +0000(svn r3151) - Fix: showing the highscore might crash the game with an invalid string message in the case when a highscore file was used before certain strings were added.
Darkvater [Mon, 07 Nov 2005 13:30:43 +0000] rev 2613
(svn r3151) - Fix: showing the highscore might crash the game with an invalid string message in the case when a highscore file was used before certain strings were added.
- Codechange: protect _endgame_perf_titles from out-of-bounds access.

Mon, 07 Nov 2005 13:02:33 +0000(svn r3150) Unify some code duplication in HandleLocomotiveSmokeCloud()
peter1138 [Mon, 07 Nov 2005 13:02:33 +0000] rev 2612
(svn r3150) Unify some code duplication in HandleLocomotiveSmokeCloud()

Sun, 06 Nov 2005 13:42:26 +0000(svn r3148) -NewGRF, Feature: Add support for cargo refitting specification by cargo classes.
peter1138 [Sun, 06 Nov 2005 13:42:26 +0000] rev 2611
(svn r3148) -NewGRF, Feature: Add support for cargo refitting specification by cargo classes.

Sun, 06 Nov 2005 13:29:28 +0000(svn r3147) Fix crash when building dual-head rail vehicles...
peter1138 [Sun, 06 Nov 2005 13:29:28 +0000] rev 2610
(svn r3147) Fix crash when building dual-head rail vehicles...

Sun, 06 Nov 2005 12:39:30 +0000(svn r3146) Avoid use of variable size declared arrays when allocating articulated rail vehicles.
peter1138 [Sun, 06 Nov 2005 12:39:30 +0000] rev 2609
(svn r3146) Avoid use of variable size declared arrays when allocating articulated rail vehicles.

Sun, 06 Nov 2005 10:17:20 +0000(svn r3145) Fix two off-by-one errors in building articulated rail vehicles.
peter1138 [Sun, 06 Nov 2005 10:17:20 +0000] rev 2608
(svn r3145) Fix two off-by-one errors in building articulated rail vehicles.

Sun, 06 Nov 2005 01:15:10 +0000(svn r3144) -Fix: a new train is now made if the front unit is an engine and the former front engine is moved away (Meush)
bjarni [Sun, 06 Nov 2005 01:15:10 +0000] rev 2607
(svn r3144) -Fix: a new train is now made if the front unit is an engine and the former front engine is moved away (Meush)

Sat, 05 Nov 2005 19:58:16 +0000(svn r3143) -Codechange: greatly increased speed when allocating vehicles
bjarni [Sat, 05 Nov 2005 19:58:16 +0000] rev 2606
(svn r3143) -Codechange: greatly increased speed when allocating vehicles
This increases the speed greatly when allocating more than one at a time
(planes, artic engines, cloning...) and when adding another block of
vehicles to the vehicle pool (adding 512 vehicles each time)

Sat, 05 Nov 2005 18:32:21 +0000(svn r3142) Remove a now invalid case fall-through and use helper function instead of map access.
peter1138 [Sat, 05 Nov 2005 18:32:21 +0000] rev 2605
(svn r3142) Remove a now invalid case fall-through and use helper function instead of map access.

Sat, 05 Nov 2005 18:21:28 +0000(svn r3141) Replace incorrect railtype bitmask in CmdRailTrackHelper with appropriate GB()
peter1138 [Sat, 05 Nov 2005 18:21:28 +0000] rev 2604
(svn r3141) Replace incorrect railtype bitmask in CmdRailTrackHelper with appropriate GB()

Sat, 05 Nov 2005 18:13:40 +0000(svn r3140) Building/removing a waypoint could leave old PBS reservations behind. This ensures they are cleared.
peter1138 [Sat, 05 Nov 2005 18:13:40 +0000] rev 2603
(svn r3140) Building/removing a waypoint could leave old PBS reservations behind. This ensures they are cleared.

Sat, 05 Nov 2005 16:07:26 +0000(svn r3139) -NewGRF, Feature: support for articulated rail vehicles. This is used, for example, by coal tenders.
peter1138 [Sat, 05 Nov 2005 16:07:26 +0000] rev 2602
(svn r3139) -NewGRF, Feature: support for articulated rail vehicles. This is used, for example, by coal tenders.

Sat, 05 Nov 2005 14:01:00 +0000(svn r3138) -Fix: [clone vehicles] fixed assert when it was possible to allocate some vehicles to clone a train, but not for all cars
bjarni [Sat, 05 Nov 2005 14:01:00 +0000] rev 2601
(svn r3138) -Fix: [clone vehicles] fixed assert when it was possible to allocate some vehicles to clone a train, but not for all cars
Now it gives "too many vehicles" error message instead
To make this work, AllocateVehicles() needed to be moved to vehicle.c (from aircraft_cmd.c) and made non-static

Fri, 04 Nov 2005 22:10:49 +0000(svn r3137) -Fix: [autoreplace] fixed assert that was triggerable when a vehicle entered a depot even though the goto depot was canceled
bjarni [Fri, 04 Nov 2005 22:10:49 +0000] rev 2600
(svn r3137) -Fix: [autoreplace] fixed assert that was triggerable when a vehicle entered a depot even though the goto depot was canceled
this assert could be reached by clicking on the goto depot button to cancel goto depot from the orders and the vehicle
still entered the depot. The flags in that case would not be "normal" anymore. An additional check is added to prevent this

Fri, 04 Nov 2005 20:52:03 +0000(svn r3136) -Fix: [autoreplace] all cargo in engines that consists of more than one vehicle will try to move cargo from all vehicles
bjarni [Fri, 04 Nov 2005 20:52:03 +0000] rev 2599
(svn r3136) -Fix: [autoreplace] all cargo in engines that consists of more than one vehicle will try to move cargo from all vehicles
currently this applies to planes and multiheaded train engines (no more lost airmail)
added GetNextEnginePart() that returns the next vehicle in an engine nomatter what type it is
when more types of multivehicle engines are added, they will have to be added here too or autoreplace will not remove all cargo

Fri, 04 Nov 2005 16:12:48 +0000(svn r3135) Use symbolic names in the tables, which hold the information about accepted goods of industry tiles, instead of magic numbers
tron [Fri, 04 Nov 2005 16:12:48 +0000] rev 2598
(svn r3135) Use symbolic names in the tables, which hold the information about accepted goods of industry tiles, instead of magic numbers

Fri, 04 Nov 2005 14:57:53 +0000(svn r3134) Forgot to commit one file in r3133
tron [Fri, 04 Nov 2005 14:57:53 +0000] rev 2597
(svn r3134) Forgot to commit one file in r3133

Fri, 04 Nov 2005 14:01:44 +0000(svn r3133) - static, const
tron [Fri, 04 Nov 2005 14:01:44 +0000] rev 2596
(svn r3133) - static, const
- remove long unused stuff and bogus comments
- complement struct typedefs
- remove read-only (_demo_mode) and unused (_fix_mouse_at) global variables

Fri, 04 Nov 2005 12:58:18 +0000(svn r3132) -NewGRF: support positioning of rail vehicle visual effects.
peter1138 [Fri, 04 Nov 2005 12:58:18 +0000] rev 2595
(svn r3132) -NewGRF: support positioning of rail vehicle visual effects.

Fri, 04 Nov 2005 10:02:50 +0000(svn r3131) Enable panning of audio relative to screen position.
peter1138 [Fri, 04 Nov 2005 10:02:50 +0000] rev 2594
(svn r3131) Enable panning of audio relative to screen position.

Fri, 04 Nov 2005 07:38:26 +0000(svn r3130) Calculate shorter wagon lengths more precisely in train depot window. This affects wagon position, the scroll bar, and the train length counter. No trial and error is required to get the correct length now.
peter1138 [Fri, 04 Nov 2005 07:38:26 +0000] rev 2593
(svn r3130) Calculate shorter wagon lengths more precisely in train depot window. This affects wagon position, the scroll bar, and the train length counter. No trial and error is required to get the correct length now.

Thu, 03 Nov 2005 21:22:38 +0000(svn r3129) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money
bjarni [Thu, 03 Nov 2005 21:22:38 +0000] rev 2592
(svn r3129) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money
this is not the same bug as in rev 3128, which means you actually paid 3 times. Now it pays correctly

Thu, 03 Nov 2005 20:19:15 +0000(svn r3128) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money
bjarni [Thu, 03 Nov 2005 20:19:15 +0000] rev 2591
(svn r3128) -Fix: [autoreplace] fixed bug that made the player pay twice for autoreplacing and could end up with negative money

Thu, 03 Nov 2005 19:51:28 +0000(svn r3127) -Fix: [autoreplace] fixed a condition where a vehicle could fail to stop when autoreplacing
bjarni [Thu, 03 Nov 2005 19:51:28 +0000] rev 2590
(svn r3127) -Fix: [autoreplace] fixed a condition where a vehicle could fail to stop when autoreplacing
this would result in the construction of a new vehicle while the old one just continued
added an assert to make sure it's always stopped before trying to sell the old vehicle

Thu, 03 Nov 2005 18:27:29 +0000(svn r3126) Autoreplace: Only the first vehicle in a chain should be marked as entering a depot, so call moved out of DoVehicleTrigger loop.
peter1138 [Thu, 03 Nov 2005 18:27:29 +0000] rev 2589
(svn r3126) Autoreplace: Only the first vehicle in a chain should be marked as entering a depot, so call moved out of DoVehicleTrigger loop.

Thu, 03 Nov 2005 15:25:45 +0000(svn r3125) Symbolic names for skiping sprites and the end of the sprite list
tron [Thu, 03 Nov 2005 15:25:45 +0000] rev 2588
(svn r3125) Symbolic names for skiping sprites and the end of the sprite list

Thu, 03 Nov 2005 09:22:24 +0000(svn r3124) Alter train loading/unloading time to use the actual length of the train instead of the number of wagons. The actual length is cached in the first vehicle of the train.
peter1138 [Thu, 03 Nov 2005 09:22:24 +0000] rev 2587
(svn r3124) Alter train loading/unloading time to use the actual length of the train instead of the number of wagons. The actual length is cached in the first vehicle of the train.

Wed, 02 Nov 2005 23:55:10 +0000(svn r3123) eh, don't press enter after typing text, previous patch wasn't finished. Now strgen really behaves correctly. Thanks again glx
Darkvater [Wed, 02 Nov 2005 23:55:10 +0000] rev 2586
(svn r3123) eh, don't press enter after typing text, previous patch wasn't finished. Now strgen really behaves correctly. Thanks again glx

Wed, 02 Nov 2005 23:31:04 +0000(svn r3122) - Fix (regression): recent change to strgen which 'fixed' all strings with wrong plural forms. Thanks for glx for pointing this out (after I changed his original patch which was correct..whohoo braindeadness; here I come)
Darkvater [Wed, 02 Nov 2005 23:31:04 +0000] rev 2585
(svn r3122) - Fix (regression): recent change to strgen which 'fixed' all strings with wrong plural forms. Thanks for glx for pointing this out (after I changed his original patch which was correct..whohoo braindeadness; here I come)

Wed, 02 Nov 2005 19:20:48 +0000(svn r3121) [Translations] Moved turkish.txt from unfinished to stable
miham [Wed, 02 Nov 2005 19:20:48 +0000] rev 2584
(svn r3121) [Translations] Moved turkish.txt from unfinished to stable

Wed, 02 Nov 2005 19:16:33 +0000(svn r3120) Update the turkish translation, about 2000 strings.
tron [Wed, 02 Nov 2005 19:16:33 +0000] rev 2583
(svn r3120) Update the turkish translation, about 2000 strings.
Many thanks to jnmbk for his effort!

Wed, 02 Nov 2005 16:05:45 +0000(svn r3119) Don't pretend to be the Windows version of TTD all the time. When being asked answer according to _use_dos_palette. (Suggestion by Belugas)
tron [Wed, 02 Nov 2005 16:05:45 +0000] rev 2582
(svn r3119) Don't pretend to be the Windows version of TTD all the time. When being asked answer according to _use_dos_palette. (Suggestion by Belugas)

Wed, 02 Nov 2005 13:06:07 +0000(svn r3118) Name 3 palette modifiers properly (belugas)
tron [Wed, 02 Nov 2005 13:06:07 +0000] rev 2581
(svn r3118) Name 3 palette modifiers properly (belugas)

Tue, 01 Nov 2005 18:33:47 +0000(svn r3117) [Translations] Updated french
miham [Tue, 01 Nov 2005 18:33:47 +0000] rev 2580
(svn r3117) [Translations] Updated french

Tue, 01 Nov 2005 17:20:06 +0000(svn r3116) -Fix: [autoreplace] fixed issue where autorenewing/autoreplacing a plane could lock up an airport
bjarni [Tue, 01 Nov 2005 17:20:06 +0000] rev 2579
(svn r3116) -Fix: [autoreplace] fixed issue where autorenewing/autoreplacing a plane could lock up an airport
this will not fix already locked up airports
this bug was introduced in rev 3111

Tue, 01 Nov 2005 09:34:42 +0000(svn r3115) Fix typos, remove untranslated strings, use the correct charset
tron [Tue, 01 Nov 2005 09:34:42 +0000] rev 2578
(svn r3115) Fix typos, remove untranslated strings, use the correct charset

Tue, 01 Nov 2005 06:38:23 +0000(svn r3114) Close two gaps in the sprite array when loading openttd.grf. That's seven more free sprite slots, yay!
tron [Tue, 01 Nov 2005 06:38:23 +0000] rev 2577
(svn r3114) Close two gaps in the sprite array when loading openttd.grf. That's seven more free sprite slots, yay!

Mon, 31 Oct 2005 18:29:21 +0000(svn r3113) -Fix: The Makefile had 64bit code which was obsolete, not to say wrong.
truelight [Mon, 31 Oct 2005 18:29:21 +0000] rev 2576
(svn r3113) -Fix: The Makefile had 64bit code which was obsolete, not to say wrong.
This removes all the 64bit stuff from the Makefile. Everything should
work just fine. Also removed the warning on amd64, 64bit OpenTTD is
stable. Tnx to dst for commenting and testing on this subject.

Mon, 31 Oct 2005 14:30:45 +0000(svn r3112) -Feature: [autoreplace] profit counters are now remembered too (request by Darkvater)
bjarni [Mon, 31 Oct 2005 14:30:45 +0000] rev 2575
(svn r3112) -Feature: [autoreplace] profit counters are now remembered too (request by Darkvater)

Mon, 31 Oct 2005 12:59:47 +0000(svn r3111) -Fix: [autoreplace] [ 1341783 ] Assertion failure in vehicle.c line 378
bjarni [Mon, 31 Oct 2005 12:59:47 +0000] rev 2574
(svn r3111) -Fix: [autoreplace] [ 1341783 ] Assertion failure in vehicle.c line 378
running MaybeReplaceVehicle() is now delayed until after the loop in CallVehicleTicks()
This avoids selling the vehicle the loop currently works with (and continues to work with afterwards)

Mon, 31 Oct 2005 12:01:41 +0000(svn r3110) Replace another 256 with TOTAL_NUM_ENGINES.
peter1138 [Mon, 31 Oct 2005 12:01:41 +0000] rev 2573
(svn r3110) Replace another 256 with TOTAL_NUM_ENGINES.

Mon, 31 Oct 2005 11:22:52 +0000(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES
peter1138 [Mon, 31 Oct 2005 11:22:52 +0000] rev 2572
(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES

Mon, 31 Oct 2005 10:23:58 +0000(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums
tron [Mon, 31 Oct 2005 10:23:58 +0000] rev 2571
(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums

Sun, 30 Oct 2005 21:47:42 +0000(svn r3107) -NewGRF: Move train y-position offset adjustment to remove code duplication, and make it apply only to vehicles with a custom image.
peter1138 [Sun, 30 Oct 2005 21:47:42 +0000] rev 2570
(svn r3107) -NewGRF: Move train y-position offset adjustment to remove code duplication, and make it apply only to vehicles with a custom image.

Sun, 30 Oct 2005 21:35:48 +0000(svn r3106) -Autoreplace feature: Continue to show old vehicles in replace window after all player's vehicles of that type have been replaced. This allows the replacement to be removed. These vehicles are shown in grey instead of the player's colour.
peter1138 [Sun, 30 Oct 2005 21:35:48 +0000] rev 2569
(svn r3106) -Autoreplace feature: Continue to show old vehicles in replace window after all player's vehicles of that type have been replaced. This allows the replacement to be removed. These vehicles are shown in grey instead of the player's colour.

Sun, 30 Oct 2005 15:50:08 +0000(svn r3105) readded 2 line that should not have been removed in last commit(3104). Now cargo are removed when refitting (like it should)
bjarni [Sun, 30 Oct 2005 15:50:08 +0000] rev 2568
(svn r3105) readded 2 line that should not have been removed in last commit(3104). Now cargo are removed when refitting (like it should)

Sun, 30 Oct 2005 11:00:54 +0000(svn r3104) -Codechange: [refit] removed now obsolite code that the old autoreplace needed
bjarni [Sun, 30 Oct 2005 11:00:54 +0000] rev 2567
(svn r3104) -Codechange: [refit] removed now obsolite code that the old autoreplace needed

Sun, 30 Oct 2005 00:16:48 +0000(svn r3103) - Fix: [ 1339000 ] Fix: strgen and plural forms fatal error for untranslated strings. (glx). Also output the correct lines for these warnings, for missing strings the lines correspond with the ones in english.txt
Darkvater [Sun, 30 Oct 2005 00:16:48 +0000] rev 2566
(svn r3103) - Fix: [ 1339000 ] Fix: strgen and plural forms fatal error for untranslated strings. (glx). Also output the correct lines for these warnings, for missing strings the lines correspond with the ones in english.txt

Sat, 29 Oct 2005 22:27:34 +0000(svn r3102) - Fix (regression): Newly added sprite had problems when newgrf's where loaded. Thanks Tron for explaining what the problem was and how it should be solved.
Darkvater [Sat, 29 Oct 2005 22:27:34 +0000] rev 2565
(svn r3102) - Fix (regression): Newly added sprite had problems when newgrf's where loaded. Thanks Tron for explaining what the problem was and how it should be solved.

Sat, 29 Oct 2005 21:54:28 +0000(svn r3101) -Codechange: added _new_vehicle_id
bjarni [Sat, 29 Oct 2005 21:54:28 +0000] rev 2564
(svn r3101) -Codechange: added _new_vehicle_id
this var works like _new_train_id and the rest of that kind of vars, except it is set each time a vehicle is build, nomatter what type
this is a nice tool to code vehicle independent code, which in turn can reduce code duplication
Right now it's used in ReplaceVehicle() and CmdCloneVehicle()

Sat, 29 Oct 2005 20:58:26 +0000(svn r3100) -Codechange [Clone vehicles] Major change to clone vehicles
bjarni [Sat, 29 Oct 2005 20:58:26 +0000] rev 2563
(svn r3100) -Codechange [Clone vehicles] Major change to clone vehicles
removed duplicated code and added DoCommand, which used the define build commands added with autoreplace
This should not affect gameplay at all

Sat, 29 Oct 2005 20:28:43 +0000(svn r3099) Copy&pasto in r3098
tron [Sat, 29 Oct 2005 20:28:43 +0000] rev 2562
(svn r3099) Copy&pasto in r3098

Fri, 28 Oct 2005 20:04:54 +0000(svn r3098) static, const, uint -> TileIndex, indentation, bracing, unused return values, ... mostly related to the clone vehicle GUI
tron [Fri, 28 Oct 2005 20:04:54 +0000] rev 2561
(svn r3098) static, const, uint -> TileIndex, indentation, bracing, unused return values, ... mostly related to the clone vehicle GUI

Fri, 28 Oct 2005 00:18:57 +0000(svn r3097) - Fix (regression): unix has a trailing slash after the paths, windows does not, no idea why os2 has. Way to go consistency :s. So anyways, just strip trailing slash
Darkvater [Fri, 28 Oct 2005 00:18:57 +0000] rev 2560
(svn r3097) - Fix (regression): unix has a trailing slash after the paths, windows does not, no idea why os2 has. Way to go consistency :s. So anyways, just strip trailing slash

Fri, 28 Oct 2005 00:09:59 +0000(svn r3096) - Feature: 'HOME' icon to saveload dialogs that jumps to the default save/load directory based on the dialog (added icon to openttd.grf, introduced FIOS_TYPE_DIRECT that allows arbitrary directory jumping).
Darkvater [Fri, 28 Oct 2005 00:09:59 +0000] rev 2559
(svn r3096) - Feature: 'HOME' icon to saveload dialogs that jumps to the default save/load directory based on the dialog (added icon to openttd.grf, introduced FIOS_TYPE_DIRECT that allows arbitrary directory jumping).
- Fix: on Win32 capitalize the drive-letter in the saveload dialog windows when it is first opened.

Thu, 27 Oct 2005 19:30:40 +0000(svn r3093) -Fix: [autoreplace] fixed issue where the money limit message showed up in some cases when no replace was needed
bjarni [Thu, 27 Oct 2005 19:30:40 +0000] rev 2558
(svn r3093) -Fix: [autoreplace] fixed issue where the money limit message showed up in some cases when no replace was needed

Wed, 26 Oct 2005 07:12:14 +0000(svn r3090) Remove long dead pieces of code
tron [Wed, 26 Oct 2005 07:12:14 +0000] rev 2557
(svn r3090) Remove long dead pieces of code

Tue, 25 Oct 2005 19:52:25 +0000(svn r3089) Fix possible issue with out-of-bounds array access in replace vehicle gui, and add brief commenting.
peter1138 [Tue, 25 Oct 2005 19:52:25 +0000] rev 2556
(svn r3089) Fix possible issue with out-of-bounds array access in replace vehicle gui, and add brief commenting.

Tue, 25 Oct 2005 19:41:32 +0000(svn r3088) -Fix: [OSX] fixed issue where OSX could not dynamic link to quicktime [ 1334917 ]
bjarni [Tue, 25 Oct 2005 19:41:32 +0000] rev 2555
(svn r3088) -Fix: [OSX] fixed issue where OSX could not dynamic link to quicktime [ 1334917 ]

Tue, 25 Oct 2005 18:29:32 +0000(svn r3087) Rewrite GetPlayerRailtypes() so it doesn't depend on magical numbers to sort out wagons
tron [Tue, 25 Oct 2005 18:29:32 +0000] rev 2554
(svn r3087) Rewrite GetPlayerRailtypes() so it doesn't depend on magical numbers to sort out wagons

Mon, 24 Oct 2005 20:12:39 +0000(svn r3082) made ChangeVehicleViewWindow() more readable (added in last commit)
bjarni [Mon, 24 Oct 2005 20:12:39 +0000] rev 2553
(svn r3082) made ChangeVehicleViewWindow() more readable (added in last commit)

Mon, 24 Oct 2005 19:40:48 +0000(svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace
bjarni [Mon, 24 Oct 2005 19:40:48 +0000] rev 2552
(svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace
this is a complete rewrite, that makes use of existing commands like build and sell
this means that multiheaded train engines are replaced correctly

Mon, 24 Oct 2005 05:51:23 +0000(svn r3080) byte -> PlayerID, int -> EngineID, -1 -> INVALID_ENGINE
tron [Mon, 24 Oct 2005 05:51:23 +0000] rev 2551
(svn r3080) byte -> PlayerID, int -> EngineID, -1 -> INVALID_ENGINE

Sun, 23 Oct 2005 14:38:09 +0000(svn r3079) Determine the type of the "first arrival" message for road vehicles using the cargo type and not a magic engine number
tron [Sun, 23 Oct 2005 14:38:09 +0000] rev 2550
(svn r3079) Determine the type of the "first arrival" message for road vehicles using the cargo type and not a magic engine number

Sun, 23 Oct 2005 13:04:44 +0000(svn r3078) Some more stuff, which piled up:
tron [Sun, 23 Oct 2005 13:04:44 +0000] rev 2549
(svn r3078) Some more stuff, which piled up:
- const, whitespace, indentation, bracing, GB/SB, pointless casts
- use the trinary operator where appropriate
- data types (uint[] -> AcceptedCargo, ...)
- if cascade -> switch
- if (ptr) -> if (ptr != NULL)
- DeMorgan's Law
- Fix some comments
- 0 -> '\0', change magic numbers to symbolic constants

Sat, 22 Oct 2005 06:39:32 +0000(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
tron [Sat, 22 Oct 2005 06:39:32 +0000] rev 2548
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up

Fri, 21 Oct 2005 12:24:55 +0000(svn r3076) s/OSX/OS X/
tron [Fri, 21 Oct 2005 12:24:55 +0000] rev 2547
(svn r3076) s/OSX/OS X/
and Unix is spelled "Unix", not "Linux"

Fri, 21 Oct 2005 06:04:17 +0000(svn r3075) -PBS: Keep track reservation state while building and removing a waypoint.
peter1138 [Fri, 21 Oct 2005 06:04:17 +0000] rev 2546
(svn r3075) -PBS: Keep track reservation state while building and removing a waypoint.

Thu, 20 Oct 2005 19:44:41 +0000(svn r3074) -NewGrf: Fix stupid typo in weight setting.
peter1138 [Thu, 20 Oct 2005 19:44:41 +0000] rev 2545
(svn r3074) -NewGrf: Fix stupid typo in weight setting.

Thu, 20 Oct 2005 17:43:13 +0000(svn r3073) int/byte -> EngineID/PlayerID/VehicleID
tron [Thu, 20 Oct 2005 17:43:13 +0000] rev 2544
(svn r3073) int/byte -> EngineID/PlayerID/VehicleID
0/-1 -> INVALID_ENGINE
0x10 -> OWNER_NONE

Thu, 20 Oct 2005 17:23:33 +0000(svn r3072) CMD_RENAME_STATION isn't interested in the tile coordinates, so don't pass them
tron [Thu, 20 Oct 2005 17:23:33 +0000] rev 2543
(svn r3072) CMD_RENAME_STATION isn't interested in the tile coordinates, so don't pass them

Thu, 20 Oct 2005 15:15:58 +0000(svn r3071) -NewGRF: Add support for rail vehicle weight greater than 255 tons.
peter1138 [Thu, 20 Oct 2005 15:15:58 +0000] rev 2542
(svn r3071) -NewGRF: Add support for rail vehicle weight greater than 255 tons.

Wed, 19 Oct 2005 20:00:05 +0000(svn r3070) - it doesn't matter where the '.' is found for the IP, if it is found, it is not a normal index when unbanning clients ('\0' should of course be NULL); thx Tron
Darkvater [Wed, 19 Oct 2005 20:00:05 +0000] rev 2541
(svn r3070) - it doesn't matter where the '.' is found for the IP, if it is found, it is not a normal index when unbanning clients ('\0' should of course be NULL); thx Tron

Wed, 19 Oct 2005 19:44:01 +0000(svn r3069) - CodeChange: now that we have the '|' char, use that as a seperator instead of '\' as was originally intention
Darkvater [Wed, 19 Oct 2005 19:44:01 +0000] rev 2540
(svn r3069) - CodeChange: now that we have the '|' char, use that as a seperator instead of '\' as was originally intention

Wed, 19 Oct 2005 19:41:38 +0000(svn r3068) - Feature: make it possible to create a screenshot from the console that is both big and has no console, or any combination of.
Darkvater [Wed, 19 Oct 2005 19:41:38 +0000] rev 2539
(svn r3068) - Feature: make it possible to create a screenshot from the console that is both big and has no console, or any combination of.

Wed, 19 Oct 2005 19:38:35 +0000(svn r3067) - Feature: allow unbanning players based on banlist-id (as well as IP).
Darkvater [Wed, 19 Oct 2005 19:38:35 +0000] rev 2538
(svn r3067) - Feature: allow unbanning players based on banlist-id (as well as IP).
- Feature: 'status' and 'clients' now show the IP of the players

Wed, 19 Oct 2005 14:49:46 +0000(svn r3066) Constify the parameter of GetSlopeZ_*()
tron [Wed, 19 Oct 2005 14:49:46 +0000] rev 2537
(svn r3066) Constify the parameter of GetSlopeZ_*()

Wed, 19 Oct 2005 08:34:37 +0000(svn r3065) -Codechange/Add: Modified the bridge drawing code so that the basic offset is read from the RailTypeInfo struct. This is (hopefully) the last DrawTile change on the way to electrified railways. While being at it, de-mystified the function a bit and added some asserts.
celestar [Wed, 19 Oct 2005 08:34:37 +0000] rev 2536
(svn r3065) -Codechange/Add: Modified the bridge drawing code so that the basic offset is read from the RailTypeInfo struct. This is (hopefully) the last DrawTile change on the way to electrified railways. While being at it, de-mystified the function a bit and added some asserts.

Wed, 19 Oct 2005 06:46:41 +0000(svn r3064) Replace some numbers by sprite names
tron [Wed, 19 Oct 2005 06:46:41 +0000] rev 2535
(svn r3064) Replace some numbers by sprite names

Wed, 19 Oct 2005 06:17:11 +0000(svn r3063) -Codechange: Demystified and commented bridge_land.h. Also removed two arrays that are not referred to
celestar [Wed, 19 Oct 2005 06:17:11 +0000] rev 2534
(svn r3063) -Codechange: Demystified and commented bridge_land.h. Also removed two arrays that are not referred to

Tue, 18 Oct 2005 21:48:45 +0000(svn r3062) - Add visual representation of possible text-colours instead of dubious and confusing textfile
Darkvater [Tue, 18 Oct 2005 21:48:45 +0000] rev 2533
(svn r3062) - Add visual representation of possible text-colours instead of dubious and confusing textfile

Tue, 18 Oct 2005 20:18:05 +0000(svn r3061) - CodeChange: revert r3056, r3057 and add a simpler fix to satisfy the needs of the absolute strict (eg. root directory is C:\ not C:)
Darkvater [Tue, 18 Oct 2005 20:18:05 +0000] rev 2532
(svn r3061) - CodeChange: revert r3056, r3057 and add a simpler fix to satisfy the needs of the absolute strict (eg. root directory is C:\ not C:)

Tue, 18 Oct 2005 18:18:50 +0000(svn r3060) [Translations] Updating translations to 2005-10-18 {@805} (2 langs changed)
miham [Tue, 18 Oct 2005 18:18:50 +0000] rev 2531
(svn r3060) [Translations] Updating translations to 2005-10-18 {@805} (2 langs changed)

Tue, 18 Oct 2005 11:23:58 +0000(svn r3059) Use bitfields to encode railtype and climates of engines instead of manual shifting/anding
tron [Tue, 18 Oct 2005 11:23:58 +0000] rev 2530
(svn r3059) Use bitfields to encode railtype and climates of engines instead of manual shifting/anding

Tue, 18 Oct 2005 07:01:00 +0000(svn r3058) The default AI may not build dual headed trains under certain circumstances.
tron [Tue, 18 Oct 2005 07:01:00 +0000] rev 2529
(svn r3058) The default AI may not build dual headed trains under certain circumstances.
Simplify this check by testing the rail vehicle info flags instead of passing a global variable around.
Note: This is not exactly the original behaviour, because the Lev4 was always allowed to be built, but i guess that was a glitch.

Mon, 17 Oct 2005 22:49:15 +0000(svn r3057) - (Post)Fix: fix backslash occurence in all cases, also when going to root directory through 'parent directory', and of course don't show parent dir in root.
Darkvater [Mon, 17 Oct 2005 22:49:15 +0000] rev 2528
(svn r3057) - (Post)Fix: fix backslash occurence in all cases, also when going to root directory through 'parent directory', and of course don't show parent dir in root.

Mon, 17 Oct 2005 22:24:32 +0000(svn r3056) - Fix: Problem on Win98 and lower when if you go to the root directory of a drive (eg. C:\) you were stuck there indefinitely and couldn't change any directories or see any files
Darkvater [Mon, 17 Oct 2005 22:24:32 +0000] rev 2527
(svn r3056) - Fix: Problem on Win98 and lower when if you go to the root directory of a drive (eg. C:\) you were stuck there indefinitely and couldn't change any directories or see any files

Mon, 17 Oct 2005 19:57:00 +0000(svn r3055) Give the savegame/scenarion sort order flags symbolic names
tron [Mon, 17 Oct 2005 19:57:00 +0000] rev 2526
(svn r3055) Give the savegame/scenarion sort order flags symbolic names

Mon, 17 Oct 2005 10:09:37 +0000(svn r3054) Remove the unsused function GetNumRailtypes()
tron [Mon, 17 Oct 2005 10:09:37 +0000] rev 2525
(svn r3054) Remove the unsused function GetNumRailtypes()

Sun, 16 Oct 2005 15:00:22 +0000(svn r3053) -Fix: [ 1326604 ] Fixed typo and hang for BeOS Networking (MYOB)
truelight [Sun, 16 Oct 2005 15:00:22 +0000] rev 2524
(svn r3053) -Fix: [ 1326604 ] Fixed typo and hang for BeOS Networking (MYOB)

Sun, 16 Oct 2005 14:12:21 +0000(svn r3052) Fix last commit *grml*
tron [Sun, 16 Oct 2005 14:12:21 +0000] rev 2523
(svn r3052) Fix last commit *grml*

Sun, 16 Oct 2005 14:07:11 +0000(svn r3051) Remove the unused function RemoteSubsidyAdd()
tron [Sun, 16 Oct 2005 14:07:11 +0000] rev 2522
(svn r3051) Remove the unused function RemoteSubsidyAdd()

Sun, 16 Oct 2005 12:22:16 +0000(svn r3050) Augment the rail vehicle table with symbolic names for dual-head engines and wagons
tron [Sun, 16 Oct 2005 12:22:16 +0000] rev 2521
(svn r3050) Augment the rail vehicle table with symbolic names for dual-head engines and wagons

Sun, 16 Oct 2005 09:13:04 +0000(svn r3049) Replace byte/int/uint by RailType where appropriate
tron [Sun, 16 Oct 2005 09:13:04 +0000] rev 2520
(svn r3049) Replace byte/int/uint by RailType where appropriate

Sun, 16 Oct 2005 07:58:15 +0000(svn r3048) Replace 0/1/2 by RAILTYPE_RAIL/MONO/MAGLEV where appropriate
tron [Sun, 16 Oct 2005 07:58:15 +0000] rev 2519
(svn r3048) Replace 0/1/2 by RAILTYPE_RAIL/MONO/MAGLEV where appropriate

Sat, 15 Oct 2005 16:43:18 +0000(svn r3047) The parameters for the railtype check got flipped in the train build window (this caused no visible problem so far, therefore no Fix tag)
tron [Sat, 15 Oct 2005 16:43:18 +0000] rev 2518
(svn r3047) The parameters for the railtype check got flipped in the train build window (this caused no visible problem so far, therefore no Fix tag)

Sat, 15 Oct 2005 11:06:54 +0000(svn r3046) Replace some numbers with sprite names and fix a typo in the sprite list
tron [Sat, 15 Oct 2005 11:06:54 +0000] rev 2517
(svn r3046) Replace some numbers with sprite names and fix a typo in the sprite list

Sat, 15 Oct 2005 07:40:22 +0000(svn r3045) -NewGRF, Codechange: Don't attempt to map and empty sprite group to a vehicle.
peter1138 [Sat, 15 Oct 2005 07:40:22 +0000] rev 2516
(svn r3045) -NewGRF, Codechange: Don't attempt to map and empty sprite group to a vehicle.

Fri, 14 Oct 2005 20:10:12 +0000(svn r3044) -NewGRF, Codechange: Improve handling of non-existent sprite sets.
peter1138 [Fri, 14 Oct 2005 20:10:12 +0000] rev 2515
(svn r3044) -NewGRF, Codechange: Improve handling of non-existent sprite sets.