Thu, 23 Feb 2006 11:53:48 +0000(svn r3659) Add function to get the road bits of a level crossing
tron [Thu, 23 Feb 2006 11:53:48 +0000] rev 3070
(svn r3659) Add function to get the road bits of a level crossing

Thu, 23 Feb 2006 08:20:28 +0000(svn r3658) Add functions and symbolic names to retrieve road tile types and road pieces
tron [Thu, 23 Feb 2006 08:20:28 +0000] rev 3069
(svn r3658) Add functions and symbolic names to retrieve road tile types and road pieces

Thu, 23 Feb 2006 07:32:46 +0000(svn r3657) Fix indentation and remove now unused variable, which i forgot in r3655
tron [Thu, 23 Feb 2006 07:32:46 +0000] rev 3068
(svn r3657) Fix indentation and remove now unused variable, which i forgot in r3655

Thu, 23 Feb 2006 07:31:36 +0000(svn r3656) Simplify the overly complicated check for road pieces under a bridge
tron [Thu, 23 Feb 2006 07:31:36 +0000] rev 3067
(svn r3656) Simplify the overly complicated check for road pieces under a bridge

Thu, 23 Feb 2006 07:26:49 +0000(svn r3655) Simplify a boolean expression and turn 3 if-cascades into switches
tron [Thu, 23 Feb 2006 07:26:49 +0000] rev 3066
(svn r3655) Simplify a boolean expression and turn 3 if-cascades into switches

Wed, 22 Feb 2006 21:35:45 +0000(svn r3654) Turn another if-cascade into a switch
tron [Wed, 22 Feb 2006 21:35:45 +0000] rev 3065
(svn r3654) Turn another if-cascade into a switch

Wed, 22 Feb 2006 21:11:31 +0000(svn r3653) -Fix: You didn't pay for terraforming at the end tile when building a tunnel
tron [Wed, 22 Feb 2006 21:11:31 +0000] rev 3064
(svn r3653) -Fix: You didn't pay for terraforming at the end tile when building a tunnel

Wed, 22 Feb 2006 21:09:55 +0000(svn r3652) Rewrite CmdBuildTunnel in the hope to make it a bit more comprehensible
tron [Wed, 22 Feb 2006 21:09:55 +0000] rev 3063
(svn r3652) Rewrite CmdBuildTunnel in the hope to make it a bit more comprehensible
This implementation is also significantly shorter because it removes many redundant checks

Tue, 21 Feb 2006 19:42:42 +0000(svn r3651) -Fix: r3646 fixed some lame compiler, but broke others... this fixes it for some more compilers
truelight [Tue, 21 Feb 2006 19:42:42 +0000] rev 3062
(svn r3651) -Fix: r3646 fixed some lame compiler, but broke others... this fixes it for some more compilers

Tue, 21 Feb 2006 18:15:59 +0000(svn r3650) Fix braino in r3649, spotted by Mihamix
tron [Tue, 21 Feb 2006 18:15:59 +0000] rev 3061
(svn r3650) Fix braino in r3649, spotted by Mihamix

Tue, 21 Feb 2006 18:07:35 +0000(svn r3649) Turn several if-cascades into switch()es
tron [Tue, 21 Feb 2006 18:07:35 +0000] rev 3060
(svn r3649) Turn several if-cascades into switch()es

Tue, 21 Feb 2006 17:48:40 +0000(svn r3648) - Fix typo in r3647, don't ask me how it got there s/_/./
Darkvater [Tue, 21 Feb 2006 17:48:40 +0000] rev 3059
(svn r3648) - Fix typo in r3647, don't ask me how it got there s/_/./

Tue, 21 Feb 2006 17:29:53 +0000(svn r3647) Some style-changes to the parameter parser
Darkvater [Tue, 21 Feb 2006 17:29:53 +0000] rev 3058
(svn r3647) Some style-changes to the parameter parser

Tue, 21 Feb 2006 15:57:09 +0000(svn r3646) - We are not using MFC so don't use afxres but winres. This solves the compilation problem if MFC is not installed with the compiler IDE (VS6 for example)
Darkvater [Tue, 21 Feb 2006 15:57:09 +0000] rev 3057
(svn r3646) - We are not using MFC so don't use afxres but winres. This solves the compilation problem if MFC is not installed with the compiler IDE (VS6 for example)

Tue, 21 Feb 2006 07:44:33 +0000(svn r3645) Fix stupid typos in last (r3644) commit *sigh*
tron [Tue, 21 Feb 2006 07:44:33 +0000] rev 3056
(svn r3645) Fix stupid typos in last (r3644) commit *sigh*

Tue, 21 Feb 2006 07:41:54 +0000(svn r3644) Don't use FindLandscapeHeightByTile() when it's overkill - often it was just a complicated way of writing GetTileSlope(tile, NULL)
tron [Tue, 21 Feb 2006 07:41:54 +0000] rev 3055
(svn r3644) Don't use FindLandscapeHeightByTile() when it's overkill - often it was just a complicated way of writing GetTileSlope(tile, NULL)

Tue, 21 Feb 2006 06:43:53 +0000(svn r3643) Remove a local variable which is just a pointer to a road stop status field and had the sensible name 'b'; instead directly use the road stop status field
tron [Tue, 21 Feb 2006 06:43:53 +0000] rev 3054
(svn r3643) Remove a local variable which is just a pointer to a road stop status field and had the sensible name 'b'; instead directly use the road stop status field

Tue, 21 Feb 2006 01:15:59 +0000(svn r3642) There is a 'npf' debug level for a reason, use that instead of bastardizing 'misc'. Also, pointers are checked against NULL in an if-statement
Darkvater [Tue, 21 Feb 2006 01:15:59 +0000] rev 3053
(svn r3642) There is a 'npf' debug level for a reason, use that instead of bastardizing 'misc'. Also, pointers are checked against NULL in an if-statement

Mon, 20 Feb 2006 23:40:53 +0000(svn r3641) - Rename MusicFilesettings 'btn_down' to more sensible 'playing'
Darkvater [Mon, 20 Feb 2006 23:40:53 +0000] rev 3052
(svn r3641) - Rename MusicFilesettings 'btn_down' to more sensible 'playing'

Mon, 20 Feb 2006 23:01:58 +0000(svn r3640) - Remove win32-only variables from variables.h and put them into win32_v.c. Also ifdef the win32 specific configuration file settings.
Darkvater [Mon, 20 Feb 2006 23:01:58 +0000] rev 3051
(svn r3640) - Remove win32-only variables from variables.h and put them into win32_v.c. Also ifdef the win32 specific configuration file settings.

Mon, 20 Feb 2006 22:57:32 +0000(svn r3639) Silence warnings on gcc about {} initializers around unions
Darkvater [Mon, 20 Feb 2006 22:57:32 +0000] rev 3050
(svn r3639) Silence warnings on gcc about {} initializers around unions

Mon, 20 Feb 2006 21:49:31 +0000(svn r3631) - 2cc: Remove use of some temporary variables and perform minor optimization in the form of the ternary operator.
peter1138 [Mon, 20 Feb 2006 21:49:31 +0000] rev 3049
(svn r3631) - 2cc: Remove use of some temporary variables and perform minor optimization in the form of the ternary operator.

Mon, 20 Feb 2006 19:58:46 +0000(svn r3628) - Add BOOL and STRING types to saveload capabilities. String is unused up till now and it saves the full-buffer, regardless of how many characters the string actually has. So give a warning for that and figure it out later.
Darkvater [Mon, 20 Feb 2006 19:58:46 +0000] rev 3048
(svn r3628) - Add BOOL and STRING types to saveload capabilities. String is unused up till now and it saves the full-buffer, regardless of how many characters the string actually has. So give a warning for that and figure it out later.

Mon, 20 Feb 2006 19:43:26 +0000(svn r3627) - Change all hardcoded 255 max-saveload versions with the define SL_MAX_VERSION
Darkvater [Mon, 20 Feb 2006 19:43:26 +0000] rev 3047
(svn r3627) - Change all hardcoded 255 max-saveload versions with the define SL_MAX_VERSION

Mon, 20 Feb 2006 19:42:39 +0000(svn r3626) - Merge the SlGlobVarList (global variables) and SaveLoad (offset in struct, variable determined runtime) structs. The only difference between these two is the last element that either holds the address or the offset in the struct. Which one to take is determined by which function is called; SlObject or SlGlobList.
Darkvater [Mon, 20 Feb 2006 19:42:39 +0000] rev 3046
(svn r3626) - Merge the SlGlobVarList (global variables) and SaveLoad (offset in struct, variable determined runtime) structs. The only difference between these two is the last element that either holds the address or the offset in the struct. Which one to take is determined by which function is called; SlObject or SlGlobList.

Mon, 20 Feb 2006 19:12:46 +0000(svn r3625) - Move sl_version inside the functions where they are used to force usage.
Darkvater [Mon, 20 Feb 2006 19:12:46 +0000] rev 3045
(svn r3625) - Move sl_version inside the functions where they are used to force usage.

Mon, 20 Feb 2006 19:04:18 +0000(svn r3624) - CodeChange: Some cosmetic changes in the saveload code;
Darkvater [Mon, 20 Feb 2006 19:04:18 +0000] rev 3044
(svn r3624) - CodeChange: Some cosmetic changes in the saveload code;
- hide and validate variable-size calculation (SlCalcConvMemLen/SlCalcConvFileLen)
- some signed/unsigned fixes
- handle conditional variables the same way for global -and struct types, through checking version_from and version_to

Mon, 20 Feb 2006 18:01:38 +0000(svn r3623) - Standardize DEBUG() messages in saveload.c
Darkvater [Mon, 20 Feb 2006 18:01:38 +0000] rev 3043
(svn r3623) - Standardize DEBUG() messages in saveload.c

Mon, 20 Feb 2006 17:54:25 +0000(svn r3622) - Partly revert r3214. The patch setting max_num_autosaves stays to help control PDA-troubles which the commit was intended for. Didn't revert makefile-config version since it would cause trouble. But Bjarni promised to rewrite it :)
Darkvater [Mon, 20 Feb 2006 17:54:25 +0000] rev 3042
(svn r3622) - Partly revert r3214. The patch setting max_num_autosaves stays to help control PDA-troubles which the commit was intended for. Didn't revert makefile-config version since it would cause trouble. But Bjarni promised to rewrite it :)

Mon, 20 Feb 2006 17:49:26 +0000(svn r3621) - Codechange: Only define the server and bans list if network is enabled. Preparatory work for saving patches/settings to savegame.
Darkvater [Mon, 20 Feb 2006 17:49:26 +0000] rev 3041
(svn r3621) - Codechange: Only define the server and bans list if network is enabled. Preparatory work for saving patches/settings to savegame.