Sun, 11 Dec 2005 07:36:49 +0000(svn r3287) Turn the winres.o: openttd.rc special case into a normal %.o: %.rc rule
tron [Sun, 11 Dec 2005 07:36:49 +0000] rev 2742
(svn r3287) Turn the winres.o: openttd.rc special case into a normal %.o: %.rc rule

Sat, 10 Dec 2005 23:03:59 +0000(svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as target by default
bjarni [Sat, 10 Dec 2005 23:03:59 +0000] rev 2741
(svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as target by default

Sat, 10 Dec 2005 18:50:07 +0000(svn r3285) -Codechange: Tron was confused by a name, so let's make him happy,
truelight [Sat, 10 Dec 2005 18:50:07 +0000] rev 2740
(svn r3285) -Codechange: Tron was confused by a name, so let's make him happy,
prefixed it with 'tmp', so now we know it is a temp char* :)

Sat, 10 Dec 2005 18:47:40 +0000(svn r3284) -Fix: DoCommand always cleans up _cmd_text (tnx to Tron)
truelight [Sat, 10 Dec 2005 18:47:40 +0000] rev 2739
(svn r3284) -Fix: DoCommand always cleans up _cmd_text (tnx to Tron)

Sat, 10 Dec 2005 18:43:49 +0000(svn r3283) -Fix: decode_parameters was still used, while _cmd_text is the way
truelight [Sat, 10 Dec 2005 18:43:49 +0000] rev 2738
(svn r3283) -Fix: decode_parameters was still used, while _cmd_text is the way
-Fix: _cmd_text is cleared after a command, so we need to store it
temporaray in order to first test the command, before executing

Sat, 10 Dec 2005 12:05:39 +0000(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()
peter1138 [Sat, 10 Dec 2005 12:05:39 +0000] rev 2737
(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()

Sat, 10 Dec 2005 11:16:45 +0000(svn r3281) -Feature: [OSX] added native cocoa sound and video drivers (egladil)
bjarni [Sat, 10 Dec 2005 11:16:45 +0000] rev 2736
(svn r3281) -Feature: [OSX] added native cocoa sound and video drivers (egladil)
you can still use SDL drivers if you like and you have to run "make upgradeconf" to start using the cocoa drivers (or manually write WITH_COCOA:=1)
since SDL breaks the cocoa drivers, you can't compile with both SDL and cocoa support
Using cocoa drivers makes it easier to make universal binaries and it solves:
-FS#18 [OSX] SDL is weird in universal binaries
-FS#2 [OSX] lazy pointer crash on exit
-FS#10 [OSX] linking error when linking statically to SDL 1.2.8 (needless to explain this, but it means it should be able to compile statically with the default settings now)
-[ 1215073 ] Switching to large size out of fullscreen crashes
Using SDL drivers will still have those issues though

Sat, 10 Dec 2005 07:29:31 +0000(svn r3280) Merge the seperate (C|CXX|OBJC)_SOURCES variables into a single variable SRCS
tron [Sat, 10 Dec 2005 07:29:31 +0000] rev 2735
(svn r3280) Merge the seperate (C|CXX|OBJC)_SOURCES variables into a single variable SRCS
Now adding a new file to compile is just adding a line like SRCS += $(FIILE), regardless of type

Fri, 09 Dec 2005 19:29:11 +0000(svn r3279) -Fix: do not try to execute something that is not set to execute
truelight [Fri, 09 Dec 2005 19:29:11 +0000] rev 2734
(svn r3279) -Fix: do not try to execute something that is not set to execute
-Fix: do not increase an uid number if it isn't returned

Fri, 09 Dec 2005 19:12:11 +0000(svn r3278) -Fix: lets update the tail-pointer if we add a new item, else the linkedlist never grows ;)
truelight [Fri, 09 Dec 2005 19:12:11 +0000] rev 2733
(svn r3278) -Fix: lets update the tail-pointer if we add a new item, else the linkedlist never grows ;)

Fri, 09 Dec 2005 17:42:56 +0000(svn r3277) -Fix: lets use the right DoCommand for testing a build (tnx to Igor2Code)
truelight [Fri, 09 Dec 2005 17:42:56 +0000] rev 2732
(svn r3277) -Fix: lets use the right DoCommand for testing a build (tnx to Igor2Code)

Fri, 09 Dec 2005 13:17:31 +0000(svn r3276) reverted the last two commits. OSX 10.2 kept finding new stuff to prevent it from running OpenTTD, so now it's not supported anymore
bjarni [Fri, 09 Dec 2005 13:17:31 +0000] rev 2731
(svn r3276) reverted the last two commits. OSX 10.2 kept finding new stuff to prevent it from running OpenTTD, so now it's not supported anymore

Fri, 09 Dec 2005 13:07:21 +0000(svn r3275) -Fix: [OSX] removed libpng support and error dialogs from jaguar crosscompiles to fix crash
bjarni [Fri, 09 Dec 2005 13:07:21 +0000] rev 2730
(svn r3275) -Fix: [OSX] removed libpng support and error dialogs from jaguar crosscompiles to fix crash

Fri, 09 Dec 2005 12:15:52 +0000(svn r3274) -Fix: [OSX] added JAGUAR flag to crosscompile for OSX 10.2 (codenamed jaguar)
bjarni [Fri, 09 Dec 2005 12:15:52 +0000] rev 2729
(svn r3274) -Fix: [OSX] added JAGUAR flag to crosscompile for OSX 10.2 (codenamed jaguar)
JAGUAR and FAT_BINARY can't be used at the same time
JAGUAR will disable network support due to missing libs in 10.2

Fri, 09 Dec 2005 11:08:24 +0000(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
bjarni [Fri, 09 Dec 2005 11:08:24 +0000] rev 2728
(svn r3273) -Fix: [OSX] PPC part of universal binaries now target 10.3 instead of 10.4
10.2 support appears to be broken right now
Changed BUILD_UNIVERSAL_BINARY into FAT_BINARY (I got tired of typing)

Thu, 08 Dec 2005 21:12:15 +0000(svn r3272) -Fix: [AI] fixed issue in AI that prevented compilation without network support
bjarni [Thu, 08 Dec 2005 21:12:15 +0000] rev 2727
(svn r3272) -Fix: [AI] fixed issue in AI that prevented compilation without network support

Thu, 08 Dec 2005 09:12:25 +0000(svn r3271) Remove some debug statements of mine which somehow got into svn.
hackykid [Thu, 08 Dec 2005 09:12:25 +0000] rev 2726
(svn r3271) Remove some debug statements of mine which somehow got into svn.

Wed, 07 Dec 2005 15:48:52 +0000(svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect their actual use, and add "Close Window" tooltip where missing.
peter1138 [Wed, 07 Dec 2005 15:48:52 +0000] rev 2725
(svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect their actual use, and add "Close Window" tooltip where missing.

Wed, 07 Dec 2005 14:56:42 +0000(svn r3269) -Fix: return CMD_ERROR instead of -1 if AI_DoCommandChecked fails
truelight [Wed, 07 Dec 2005 14:56:42 +0000] rev 2724
(svn r3269) -Fix: return CMD_ERROR instead of -1 if AI_DoCommandChecked fails

Tue, 06 Dec 2005 23:37:44 +0000(svn r3268) moved lithuanian.txt to unfinished as it is broken and haven't been updated for a few months
bjarni [Tue, 06 Dec 2005 23:37:44 +0000] rev 2723
(svn r3268) moved lithuanian.txt to unfinished as it is broken and haven't been updated for a few months

Tue, 06 Dec 2005 22:09:28 +0000(svn r3267) -Codechange: [OSX] universal binary makefile code cleanup
bjarni [Tue, 06 Dec 2005 22:09:28 +0000] rev 2722
(svn r3267) -Codechange: [OSX] universal binary makefile code cleanup
now PPC code is always compiled before x86 code
strgen and lng files are only compiled once, which results in shorter building time
the makefile now assigns default values to undefined values so much less needs to be set up
the code is now easier to maintain

Tue, 06 Dec 2005 17:12:19 +0000(svn r3266) -Codechange: added comments for why the revert of r3625 inside the code.
truelight [Tue, 06 Dec 2005 17:12:19 +0000] rev 2721
(svn r3266) -Codechange: added comments for why the revert of r3625 inside the code.
Also, I forgot to tnx GraphiteNL for his help with this problem. Tnx GraphiteNL :)

Tue, 06 Dec 2005 17:05:14 +0000(svn r3265) -Fix: partly reverted back r3263, because MSVC, who else, doesn't support variadic macros............
truelight [Tue, 06 Dec 2005 17:05:14 +0000] rev 2720
(svn r3265) -Fix: partly reverted back r3263, because MSVC, who else, doesn't support variadic macros............

Tue, 06 Dec 2005 14:35:10 +0000(svn r3264) -Codechange: [OSX] OSX targets will now always use the preprocessor to determine endianess
bjarni [Tue, 06 Dec 2005 14:35:10 +0000] rev 2719
(svn r3264) -Codechange: [OSX] OSX targets will now always use the preprocessor to determine endianess
this means that ENDIAN_FORCE is obsolite since it's always overwritten with PREPROCESSOR
Since the preprocessor should never be able to pick wrong, it's easier this way
specially when compiling universal binaries as they got both endianess

Tue, 06 Dec 2005 11:36:46 +0000(svn r3263) -Fix: use () around 'variables' in macros, gives less crashes ;)
truelight [Tue, 06 Dec 2005 11:36:46 +0000] rev 2718
(svn r3263) -Fix: use () around 'variables' in macros, gives less crashes ;)
-Fix: va-args in macros are supported via __VA_ARGS__ in C99, so changed
to that; now GCC 2.95 likes it too :)

Tue, 06 Dec 2005 09:27:42 +0000(svn r3262) -Fix: [OSX] universal binaries can now include the dynamic SDL lib into the bundle
bjarni [Tue, 06 Dec 2005 09:27:42 +0000] rev 2717
(svn r3262) -Fix: [OSX] universal binaries can now include the dynamic SDL lib into the bundle

Mon, 05 Dec 2005 16:48:07 +0000(svn r3261) - Autoreplace: If a replaced vehicle had a custom name, transfer it to the new vehicle. Fixes "[ 1370039 ] Autoreplaced vehicles lose their names"
peter1138 [Mon, 05 Dec 2005 16:48:07 +0000] rev 2716
(svn r3261) - Autoreplace: If a replaced vehicle had a custom name, transfer it to the new vehicle. Fixes "[ 1370039 ] Autoreplaced vehicles lose their names"

Mon, 05 Dec 2005 12:27:58 +0000(svn r3260) -Add: add events for AIs to check if a command execution failed or succeeded
truelight [Mon, 05 Dec 2005 12:27:58 +0000] rev 2715
(svn r3260) -Add: add events for AIs to check if a command execution failed or succeeded

Sun, 04 Dec 2005 22:43:40 +0000(svn r3259) -Fix: [OSX] fixed that universal binaries did not make a bundle
bjarni [Sun, 04 Dec 2005 22:43:40 +0000] rev 2714
(svn r3259) -Fix: [OSX] fixed that universal binaries did not make a bundle

Sun, 04 Dec 2005 17:36:19 +0000(svn r3258) -Feature: [OSX] added support for universal binaries
bjarni [Sun, 04 Dec 2005 17:36:19 +0000] rev 2713
(svn r3258) -Feature: [OSX] added support for universal binaries
it needs both PPC and x86 libs to compile
due to this fact, compilation with libPNG or SDL is not tested (dedicated servers only)
only PPC part is tested as I don't have x86 OSX

Sat, 03 Dec 2005 13:43:54 +0000(svn r3257) -Codechange: [OSX] removed the dynamic lib in bundle option (introduced in rev 3230)
bjarni [Sat, 03 Dec 2005 13:43:54 +0000] rev 2712
(svn r3257) -Codechange: [OSX] removed the dynamic lib in bundle option (introduced in rev 3230)
it caused way more problems than it solved

Sat, 03 Dec 2005 10:36:23 +0000(svn r3256) -Fix: [OSX] fixed issue where building the bundle could take place before linking if -j 2 was used
bjarni [Sat, 03 Dec 2005 10:36:23 +0000] rev 2711
(svn r3256) -Fix: [OSX] fixed issue where building the bundle could take place before linking if -j 2 was used

Fri, 02 Dec 2005 19:41:35 +0000(svn r3254) - Fix: graphical glitch with autorail tool on a certain tile-type.
Darkvater [Fri, 02 Dec 2005 19:41:35 +0000] rev 2710
(svn r3254) - Fix: graphical glitch with autorail tool on a certain tile-type.
- CodeChange: adhere the global variables in autorail.h to the coding style (eg. start with underscore).

Fri, 02 Dec 2005 19:21:38 +0000(svn r3253) -Add: add BuildRoad event for AIs
truelight [Fri, 02 Dec 2005 19:21:38 +0000] rev 2709
(svn r3253) -Add: add BuildRoad event for AIs

Fri, 02 Dec 2005 14:55:23 +0000(svn r3252) - NewGRF: Map new train subtypes to old types for rail vehicles.
peter1138 [Fri, 02 Dec 2005 14:55:23 +0000] rev 2708
(svn r3252) - NewGRF: Map new train subtypes to old types for rail vehicles.

Thu, 01 Dec 2005 09:34:40 +0000(svn r3251) -Fix: report errors from GPMI in a more detailed way (Igor2Code)
truelight [Thu, 01 Dec 2005 09:34:40 +0000] rev 2707
(svn r3251) -Fix: report errors from GPMI in a more detailed way (Igor2Code)

Wed, 30 Nov 2005 16:10:19 +0000(svn r3250) -Fix: AIs weren't uninitialized when a new game was loaded
truelight [Wed, 30 Nov 2005 16:10:19 +0000] rev 2706
(svn r3250) -Fix: AIs weren't uninitialized when a new game was loaded

Wed, 30 Nov 2005 07:31:54 +0000(svn r3249) Fix for issue introduced in r3228. The original code was good for raising, then for lowering, now for both.
peter1138 [Wed, 30 Nov 2005 07:31:54 +0000] rev 2705
(svn r3249) Fix for issue introduced in r3228. The original code was good for raising, then for lowering, now for both.

Tue, 29 Nov 2005 22:29:59 +0000(svn r3248) - Codechange: Change interface of CanRefitTo() to supply the engine type directly instead of getting it from a vehicle. This allows the function to be used before vehicles are involved.
peter1138 [Tue, 29 Nov 2005 22:29:59 +0000] rev 2704
(svn r3248) - Codechange: Change interface of CanRefitTo() to supply the engine type directly instead of getting it from a vehicle. This allows the function to be used before vehicles are involved.

Tue, 29 Nov 2005 22:04:02 +0000(svn r3247) - Fix: "[ 1335580 ] sticky windows not sticky anymore"
peter1138 [Tue, 29 Nov 2005 22:04:02 +0000] rev 2703
(svn r3247) - Fix: "[ 1335580 ] sticky windows not sticky anymore"
Determine clicked status of sticky icon from window flags rather than the widget click state. This keeps the status in one place where it can't get out of sync.

Tue, 29 Nov 2005 16:06:06 +0000(svn r3246) -Fix: small glitch in ai_network_client code (network_client.c)
truelight [Tue, 29 Nov 2005 16:06:06 +0000] rev 2702
(svn r3246) -Fix: small glitch in ai_network_client code (network_client.c)
-Fix: make sure this glitch can never happen again (ai.c)

Tue, 29 Nov 2005 15:53:15 +0000(svn r3245) -Add: allow OpenTTD to give his GPMI-params to the GPMI modules
truelight [Tue, 29 Nov 2005 15:53:15 +0000] rev 2701
(svn r3245) -Add: allow OpenTTD to give his GPMI-params to the GPMI modules

Mon, 28 Nov 2005 14:02:36 +0000(svn r3244) -Fix: [GPMI] Even more GPMI based AI-code cleanup, bug fixes, and you can now control the AI that is going to boot
truelight [Mon, 28 Nov 2005 14:02:36 +0000] rev 2700
(svn r3244) -Fix: [GPMI] Even more GPMI based AI-code cleanup, bug fixes, and you can now control the AI that is going to boot

Mon, 28 Nov 2005 11:30:12 +0000(svn r3243) -Fix: IncreaseLoan and DecreaseLoan were inconsistent for AIs
truelight [Mon, 28 Nov 2005 11:30:12 +0000] rev 2699
(svn r3243) -Fix: IncreaseLoan and DecreaseLoan were inconsistent for AIs

Sun, 27 Nov 2005 16:45:45 +0000(svn r3242) -Fix: small glitch in AllowAI control
truelight [Sun, 27 Nov 2005 16:45:45 +0000] rev 2698
(svn r3242) -Fix: small glitch in AllowAI control

Sat, 26 Nov 2005 16:41:14 +0000(svn r3239) - Codechange: Introduce and use helper functions for engine replacement code.
peter1138 [Sat, 26 Nov 2005 16:41:14 +0000] rev 2697
(svn r3239) - Codechange: Introduce and use helper functions for engine replacement code.

Sat, 26 Nov 2005 16:18:15 +0000(svn r3238) -Fix: always save if you want GPMI-based AIs, this on request by
truelight [Sat, 26 Nov 2005 16:18:15 +0000] rev 2696
(svn r3238) -Fix: always save if you want GPMI-based AIs, this on request by
Darkvater, so we can, in the future, save patch options in savegames
without any problems.

Sat, 26 Nov 2005 13:23:16 +0000(svn r3237) - CodeChange: remove silencing of some warnings. MSVC6 once again has some issues with enums, and other things as usual, so silence those still.
Darkvater [Sat, 26 Nov 2005 13:23:16 +0000] rev 2695
(svn r3237) - CodeChange: remove silencing of some warnings. MSVC6 once again has some issues with enums, and other things as usual, so silence those still.

Sat, 26 Nov 2005 12:57:42 +0000(svn r3236) - Fix: warnings about 'CDECL must be used with ...' on VS6
Darkvater [Sat, 26 Nov 2005 12:57:42 +0000] rev 2694
(svn r3236) - Fix: warnings about 'CDECL must be used with ...' on VS6

Sat, 26 Nov 2005 12:45:53 +0000(svn r3235) - Fix: fix two crashes, one with making a screenshot in the main menu without any game loaded, another when failing to load a scenario in 'New Game'
Darkvater [Sat, 26 Nov 2005 12:45:53 +0000] rev 2693
(svn r3235) - Fix: fix two crashes, one with making a screenshot in the main menu without any game loaded, another when failing to load a scenario in 'New Game'

Wed, 23 Nov 2005 21:47:01 +0000(svn r3234) [Translations] Estonian is still unfinished
miham [Wed, 23 Nov 2005 21:47:01 +0000] rev 2692
(svn r3234) [Translations] Estonian is still unfinished

Wed, 23 Nov 2005 21:45:04 +0000(svn r3233) [Translations] Estonian now available again
miham [Wed, 23 Nov 2005 21:45:04 +0000] rev 2691
(svn r3233) [Translations] Estonian now available again

Wed, 23 Nov 2005 15:08:29 +0000(svn r3232) -Add: implemented the event-system for AIs
truelight [Wed, 23 Nov 2005 15:08:29 +0000] rev 2690
(svn r3232) -Add: implemented the event-system for AIs
-Add: added several hooks (event-callbacks) for road-related-stuff

Wed, 23 Nov 2005 13:45:12 +0000(svn r3231) Fix: update the GPMI implementation to the latest GPMI-API version
truelight [Wed, 23 Nov 2005 13:45:12 +0000] rev 2689
(svn r3231) Fix: update the GPMI implementation to the latest GPMI-API version

Wed, 23 Nov 2005 12:21:54 +0000(svn r3230) -Feature: [OSX] OSX builds can now change where it searches for dynamic libs and can move libs into the bundle
bjarni [Wed, 23 Nov 2005 12:21:54 +0000] rev 2688
(svn r3230) -Feature: [OSX] OSX builds can now change where it searches for dynamic libs and can move libs into the bundle
This is not a fix for the issues with static linking, more like a workaround. Static linking still got issues
Apple recommends to use dynamic linking anyway, so I guess this doesn't matter much

Tue, 22 Nov 2005 22:32:42 +0000(svn r3229) -Add: add more GPMI support. Now GPMI-based AIs can be loaded (doesn't change a thing if you didn't enable GPMI)
truelight [Tue, 22 Nov 2005 22:32:42 +0000] rev 2687
(svn r3229) -Add: add more GPMI support. Now GPMI-based AIs can be loaded (doesn't change a thing if you didn't enable GPMI)

Tue, 22 Nov 2005 22:30:35 +0000(svn r3228) - Fix: [ 1327011 ] Fix: don't lower land on tunnel, even with diag tracks on it (based on patch by glx)
peter1138 [Tue, 22 Nov 2005 22:30:35 +0000] rev 2686
(svn r3228) - Fix: [ 1327011 ] Fix: don't lower land on tunnel, even with diag tracks on it (based on patch by glx)

Tue, 22 Nov 2005 19:33:29 +0000(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version.
truelight [Tue, 22 Nov 2005 19:33:29 +0000] rev 2685
(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version.

Tue, 22 Nov 2005 15:55:38 +0000(svn r3226) -Fix: GPMI implementation had minor glitches
truelight [Tue, 22 Nov 2005 15:55:38 +0000] rev 2684
(svn r3226) -Fix: GPMI implementation had minor glitches
-Fix: the AI speed control is done by the AI-core, individual AIs don't have to do it (so, AIs were delayed twice ;)
-Add: Support for AI-network-clients (an AI, connecting to a remote server)
-Fix: minor AI-core problems

Tue, 22 Nov 2005 14:02:45 +0000(svn r3225) - Fix for "[ 1359165 ] Autoreplace problem with r3171 and later" -- Move the disabled/hidden bits to custom data in window struct.
peter1138 [Tue, 22 Nov 2005 14:02:45 +0000] rev 2683
(svn r3225) - Fix for "[ 1359165 ] Autoreplace problem with r3171 and later" -- Move the disabled/hidden bits to custom data in window struct.

Mon, 21 Nov 2005 14:28:31 +0000(svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch
truelight [Mon, 21 Nov 2005 14:28:31 +0000] rev 2682
(svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch
settings, off by defaut). An other step to AIScripts.
WARNING: this is still highly experimental and has known bugs!

Sat, 19 Nov 2005 22:39:16 +0000(svn r3223) -Fix: [autoreplace] fixed crash when replacing a train engine without any cars (introduced in r3220)
bjarni [Sat, 19 Nov 2005 22:39:16 +0000] rev 2681
(svn r3223) -Fix: [autoreplace] fixed crash when replacing a train engine without any cars (introduced in r3220)

Sat, 19 Nov 2005 12:37:28 +0000(svn r3222) -Feature: Right-Click-Scrolling optionally moves in the opposite direction (Requested by manx)
tron [Sat, 19 Nov 2005 12:37:28 +0000] rev 2680
(svn r3222) -Feature: Right-Click-Scrolling optionally moves in the opposite direction (Requested by manx)

Sat, 19 Nov 2005 11:07:42 +0000(svn r3221) [Translations] Updated to 2005-11-19
miham [Sat, 19 Nov 2005 11:07:42 +0000] rev 2679
(svn r3221) [Translations] Updated to 2005-11-19

Sat, 19 Nov 2005 10:28:02 +0000(svn r3220) -Fix: [autoreplace] Autoreplaced trains now replace their cargo to the train instead of just the new engine
bjarni [Sat, 19 Nov 2005 10:28:02 +0000] rev 2678
(svn r3220) -Fix: [autoreplace] Autoreplaced trains now replace their cargo to the train instead of just the new engine
This applies to wagon removal during autoreplace too

Sat, 19 Nov 2005 00:10:20 +0000(svn r3219) -Codechange: removed the now obsolite code in the build train command to make half multiheaded engines
bjarni [Sat, 19 Nov 2005 00:10:20 +0000] rev 2677
(svn r3219) -Codechange: removed the now obsolite code in the build train command to make half multiheaded engines

Fri, 18 Nov 2005 23:41:03 +0000(svn r3218) -Feature: Multiheaded train engines will now stay in the same train
bjarni [Fri, 18 Nov 2005 23:41:03 +0000] rev 2676
(svn r3218) -Feature: Multiheaded train engines will now stay in the same train
This means that any user attempt to remove a rear engine will tell the user to move the front engine instead
This fixes the assert when moving multiheaded engines (introduced in r3144)
Note: to make old savegames use this feature, some engines might be turned around in order to link engines in pairs

-Codechange: train subtype is now a bitmask
This allows fast access to info like if it is a wagon or engine and if it is in front and so on
Note: savegame version bump

Fri, 18 Nov 2005 20:28:55 +0000(svn r3217) Fix issue with resizing stepped windows introduced in revision 3181.
peter1138 [Fri, 18 Nov 2005 20:28:55 +0000] rev 2675
(svn r3217) Fix issue with resizing stepped windows introduced in revision 3181.

Thu, 17 Nov 2005 23:05:59 +0000(svn r3216) - Fix (regression): endless loop introduced in revision 3190
Darkvater [Thu, 17 Nov 2005 23:05:59 +0000] rev 2674
(svn r3216) - Fix (regression): endless loop introduced in revision 3190

Thu, 17 Nov 2005 22:56:50 +0000(svn r3215) - Fix: warning on VS.NET 2003 complaining about constness reintroduced by revision 3192
Darkvater [Thu, 17 Nov 2005 22:56:50 +0000] rev 2673
(svn r3215) - Fix: warning on VS.NET 2003 complaining about constness reintroduced by revision 3192

Thu, 17 Nov 2005 19:43:37 +0000(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep before starting to overwrite old ones
bjarni [Thu, 17 Nov 2005 19:43:37 +0000] rev 2672
(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep before starting to overwrite old ones
max_autosave_num in the config files sets the number of autosaves to keep (default 16)
MAX_NUM_AUTOSAVES in Makefile.config sets the default value. 16 is used if no value is given
this behaviour can still be overwritten by keep_all_autosave (openttd.config setting)
Note: this is a requested behaviour for PDA ports, since they got limited storage space

Thu, 17 Nov 2005 10:12:21 +0000(svn r3213) - Codechange: Clean up handling of road stops, avoiding unnecessary use of pointers and using the *BIT() macros.
peter1138 [Thu, 17 Nov 2005 10:12:21 +0000] rev 2671
(svn r3213) - Codechange: Clean up handling of road stops, avoiding unnecessary use of pointers and using the *BIT() macros.

Wed, 16 Nov 2005 22:20:15 +0000(svn r3212) - Waypoints/Depots: Store waypoint index in m2 for waypoints. This moves the ground type bits from m2 to m4 for waypoints and depots (leaving room for depot index in m2 in future), and moves the custom graphics ID to the waypoint struct.
peter1138 [Wed, 16 Nov 2005 22:20:15 +0000] rev 2670
(svn r3212) - Waypoints/Depots: Store waypoint index in m2 for waypoints. This moves the ground type bits from m2 to m4 for waypoints and depots (leaving room for depot index in m2 in future), and moves the custom graphics ID to the waypoint struct.
- Waypoints: Until now stat_id was saved but never assigned to. Instead we now save the GRFID/local index of the custom graphics so that GRF file changes can leave graphics intact.

Wed, 16 Nov 2005 16:16:18 +0000(svn r3211) Fix typo in r3181
tron [Wed, 16 Nov 2005 16:16:18 +0000] rev 2669
(svn r3211) Fix typo in r3181

Wed, 16 Nov 2005 14:41:01 +0000(svn r3210) -Codechange: use IsRailWaypoint where possible (instead of magicnumbers)
truelight [Wed, 16 Nov 2005 14:41:01 +0000] rev 2668
(svn r3210) -Codechange: use IsRailWaypoint where possible (instead of magicnumbers)
-Codechange: IsRailWaypoint should take 'tile', not 'm5'

Wed, 16 Nov 2005 14:30:24 +0000(svn r3209) In TileLoop_Track(), use names based on function rather than their place in the map array.
peter1138 [Wed, 16 Nov 2005 14:30:24 +0000] rev 2667
(svn r3209) In TileLoop_Track(), use names based on function rather than their place in the map array.

Wed, 16 Nov 2005 14:07:34 +0000(svn r3208) Don't explicitly pass the engine type to look for to GetRearEngine(), because it's the engine type of the vehicle which gets passed as first parameter
tron [Wed, 16 Nov 2005 14:07:34 +0000] rev 2666
(svn r3208) Don't explicitly pass the engine type to look for to GetRearEngine(), because it's the engine type of the vehicle which gets passed as first parameter

Wed, 16 Nov 2005 13:45:42 +0000(svn r3207) Typo in last revision
tron [Wed, 16 Nov 2005 13:45:42 +0000] rev 2665
(svn r3207) Typo in last revision

Wed, 16 Nov 2005 13:45:04 +0000(svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUG
tron [Wed, 16 Nov 2005 13:45:04 +0000] rev 2664
(svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUG

Wed, 16 Nov 2005 13:11:28 +0000(svn r3205) Some more uses for GB/SB
tron [Wed, 16 Nov 2005 13:11:28 +0000] rev 2663
(svn r3205) Some more uses for GB/SB

Wed, 16 Nov 2005 12:52:01 +0000(svn r3204) Make handling of clicking on vehicles a bit less ugly by avoiding function declarations in .c files and unnecessary indirection
tron [Wed, 16 Nov 2005 12:52:01 +0000] rev 2662
(svn r3204) Make handling of clicking on vehicles a bit less ugly by avoiding function declarations in .c files and unnecessary indirection

Wed, 16 Nov 2005 12:37:22 +0000(svn r3203) Directly use the currency symbols for pounds and yen in the language files like it's already done for dollar and euro
tron [Wed, 16 Nov 2005 12:37:22 +0000] rev 2661
(svn r3203) Directly use the currency symbols for pounds and yen in the language files like it's already done for dollar and euro

Wed, 16 Nov 2005 12:29:37 +0000(svn r3202) If cascade -> switch
tron [Wed, 16 Nov 2005 12:29:37 +0000] rev 2660
(svn r3202) If cascade -> switch

Wed, 16 Nov 2005 12:25:33 +0000(svn r3201) -Fix: Allow bribing up to the maximum rating for bribing, don't disable this option at some arbitrary value early
tron [Wed, 16 Nov 2005 12:25:33 +0000] rev 2659
(svn r3201) -Fix: Allow bribing up to the maximum rating for bribing, don't disable this option at some arbitrary value early

Wed, 16 Nov 2005 12:21:04 +0000(svn r3200) Remove the unused function GfxScalePalette() and the unused struct WorldSprite
tron [Wed, 16 Nov 2005 12:21:04 +0000] rev 2658
(svn r3200) Remove the unused function GfxScalePalette() and the unused struct WorldSprite

Wed, 16 Nov 2005 12:20:15 +0000(svn r3199) -Fix: There are only 2 possible directions for ship depots, not 4
tron [Wed, 16 Nov 2005 12:20:15 +0000] rev 2657
(svn r3199) -Fix: There are only 2 possible directions for ship depots, not 4

Wed, 16 Nov 2005 12:10:45 +0000(svn r3198) Rewrite the company league drawing routine for better readability
tron [Wed, 16 Nov 2005 12:10:45 +0000] rev 2656
(svn r3198) Rewrite the company league drawing routine for better readability

Wed, 16 Nov 2005 12:04:34 +0000(svn r3197) Use a better bias so you can directly see the date range a disaster can happen in
tron [Wed, 16 Nov 2005 12:04:34 +0000] rev 2655
(svn r3197) Use a better bias so you can directly see the date range a disaster can happen in

Wed, 16 Nov 2005 12:01:46 +0000(svn r3196) Use structs instead of magic offsets into arrays
tron [Wed, 16 Nov 2005 12:01:46 +0000] rev 2654
(svn r3196) Use structs instead of magic offsets into arrays

Wed, 16 Nov 2005 11:55:06 +0000(svn r3195) Use bitfields instead of explicit shifting/masking
tron [Wed, 16 Nov 2005 11:55:06 +0000] rev 2653
(svn r3195) Use bitfields instead of explicit shifting/masking

Wed, 16 Nov 2005 11:52:21 +0000(svn r3194) Don't use FindLandscapeHeightByTile() when it's overkill
tron [Wed, 16 Nov 2005 11:52:21 +0000] rev 2652
(svn r3194) Don't use FindLandscapeHeightByTile() when it's overkill

Wed, 16 Nov 2005 11:50:40 +0000(svn r3193) Staticise the vehicle position hash
tron [Wed, 16 Nov 2005 11:50:40 +0000] rev 2651
(svn r3193) Staticise the vehicle position hash

Wed, 16 Nov 2005 11:17:52 +0000(svn r3192) Split the surname list into two lists (non-toyland/toyland) and use lengthof() to get the number of names instead of using magic numbers
tron [Wed, 16 Nov 2005 11:17:52 +0000] rev 2650
(svn r3192) Split the surname list into two lists (non-toyland/toyland) and use lengthof() to get the number of names instead of using magic numbers

Wed, 16 Nov 2005 08:35:26 +0000(svn r3191) Move declaration and definition of _dbg_screen_rect to a place where it somewhat makes sense and wrap them in #ifdef _DEBUG
tron [Wed, 16 Nov 2005 08:35:26 +0000] rev 2649
(svn r3191) Move declaration and definition of _dbg_screen_rect to a place where it somewhat makes sense and wrap them in #ifdef _DEBUG

Tue, 15 Nov 2005 11:46:49 +0000(svn r3190) Turn some loops into canonical for loop form
tron [Tue, 15 Nov 2005 11:46:49 +0000] rev 2648
(svn r3190) Turn some loops into canonical for loop form

Tue, 15 Nov 2005 11:08:10 +0000(svn r3189) There's a dedicated function to check if it's a hangar tile, so use it
tron [Tue, 15 Nov 2005 11:08:10 +0000] rev 2647
(svn r3189) There's a dedicated function to check if it's a hangar tile, so use it

Tue, 15 Nov 2005 10:50:43 +0000(svn r3188) Use CmdFailed() to check, if a command failed, don't compare with CMD_ERROR
tron [Tue, 15 Nov 2005 10:50:43 +0000] rev 2646
(svn r3188) Use CmdFailed() to check, if a command failed, don't compare with CMD_ERROR

Tue, 15 Nov 2005 09:47:25 +0000(svn r3187) Simplify overly complicated ifs, especially if (foo) return false; else return true; is confusing
tron [Tue, 15 Nov 2005 09:47:25 +0000] rev 2645
(svn r3187) Simplify overly complicated ifs, especially if (foo) return false; else return true; is confusing

Tue, 15 Nov 2005 09:05:16 +0000(svn r3186) Unnecessary casts and truncation
tron [Tue, 15 Nov 2005 09:05:16 +0000] rev 2644
(svn r3186) Unnecessary casts and truncation

Tue, 15 Nov 2005 09:00:02 +0000(svn r3185) const
tron [Tue, 15 Nov 2005 09:00:02 +0000] rev 2643
(svn r3185) const

Tue, 15 Nov 2005 08:49:46 +0000(svn r3184) GB/SB
tron [Tue, 15 Nov 2005 08:49:46 +0000] rev 2642
(svn r3184) GB/SB

Tue, 15 Nov 2005 08:40:45 +0000(svn r3183) Remove an unused declaration and properly declare CheckExternalFiles() in a header
tron [Tue, 15 Nov 2005 08:40:45 +0000] rev 2641
(svn r3183) Remove an unused declaration and properly declare CheckExternalFiles() in a header

Mon, 14 Nov 2005 20:20:24 +0000(svn r3182) Fix braino in r3181
tron [Mon, 14 Nov 2005 20:20:24 +0000] rev 2640
(svn r3182) Fix braino in r3181

Mon, 14 Nov 2005 19:48:04 +0000(svn r3181) -Bracing
tron [Mon, 14 Nov 2005 19:48:04 +0000] rev 2639
(svn r3181) -Bracing
-Indentation
-Whitespace
-DeMorgan's Law
-Test with NULL or 0 for non-booleans
-'\0' instead of 0 for chars
-Remove redundantly redundant comments (like DoFoo(); // Do foo)
-Join multiple short lines with a single statement
-Split single lines with multiple statements
-Avoid assignments in if

Mon, 14 Nov 2005 15:22:12 +0000(svn r3180) Replace some magic numbers by symbolic names
tron [Mon, 14 Nov 2005 15:22:12 +0000] rev 2638
(svn r3180) Replace some magic numbers by symbolic names

Mon, 14 Nov 2005 09:21:05 +0000(svn r3179) - RandomRange() and RandomTile() instead of home brewed versions
tron [Mon, 14 Nov 2005 09:21:05 +0000] rev 2637
(svn r3179) - RandomRange() and RandomTile() instead of home brewed versions
- CHANCE*() instead of mumbling strange numbers

Mon, 14 Nov 2005 08:42:45 +0000(svn r3178) - Codechange: move static _dropdown_* vars into the window custom data, giving var1 and var2 more meaningful names.
peter1138 [Mon, 14 Nov 2005 08:42:45 +0000] rev 2636
(svn r3178) - Codechange: move static _dropdown_* vars into the window custom data, giving var1 and var2 more meaningful names.

Mon, 14 Nov 2005 08:09:57 +0000(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
tron [Mon, 14 Nov 2005 08:09:57 +0000] rev 2635
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT

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()