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.

Mon, 20 Feb 2006 09:26:07 +0000(svn r3620) - 2cc: Replace use of macro to determine colour map with a function call for drawing of vehicles.
peter1138 [Mon, 20 Feb 2006 09:26:07 +0000] rev 3040
(svn r3620) - 2cc: Replace use of macro to determine colour map with a function call for drawing of vehicles.

Mon, 20 Feb 2006 01:36:48 +0000(svn r3619) - Codechange: Simplify a NullStruct initialization in the vehicle array (merge the two together to avoid confusion)
Darkvater [Mon, 20 Feb 2006 01:36:48 +0000] rev 3039
(svn r3619) - Codechange: Simplify a NullStruct initialization in the vehicle array (merge the two together to avoid confusion)

Sun, 19 Feb 2006 10:21:01 +0000(svn r3618) -Codechange: [OSX] reduce the time spend in the cocoa video driver
bjarni [Sun, 19 Feb 2006 10:21:01 +0000] rev 3038
(svn r3618) -Codechange: [OSX] reduce the time spend in the cocoa video driver
by caching global vars in local vars, the CPU keeps them in registers when looping all pixels on screen
this reduce reading from RAM, which is much slower (Tron wrote this after I detected that those loops used a lot of time)
Note: since the reduced time is waiting for the RAM, the actual CPU usage is not reduced.
This means that it's only detectable while fast forwarding and other situations when OTTD wants to use more than 100% of the CPU time

Sat, 18 Feb 2006 18:27:17 +0000(svn r3617) Fix warning introduced in r3616
tron [Sat, 18 Feb 2006 18:27:17 +0000] rev 3037
(svn r3617) Fix warning introduced in r3616

Sat, 18 Feb 2006 17:27:06 +0000(svn r3616) Style sweep
tron [Sat, 18 Feb 2006 17:27:06 +0000] rev 3036
(svn r3616) Style sweep

Sat, 18 Feb 2006 16:20:50 +0000(svn r3615) Remove the Quartz key codes from the public cocoa video driver interface
tron [Sat, 18 Feb 2006 16:20:50 +0000] rev 3035
(svn r3615) Remove the Quartz key codes from the public cocoa video driver interface

Sat, 18 Feb 2006 14:52:42 +0000(svn r3614) turn 2 do-while-loop with 2 induction variables each into canocical for loops
tron [Sat, 18 Feb 2006 14:52:42 +0000] rev 3034
(svn r3614) turn 2 do-while-loop with 2 induction variables each into canocical for loops

Sat, 18 Feb 2006 14:41:24 +0000(svn r3613) Some more const, indentation, whitespace and similar stuff
tron [Sat, 18 Feb 2006 14:41:24 +0000] rev 3033
(svn r3613) Some more const, indentation, whitespace and similar stuff

Sat, 18 Feb 2006 14:11:23 +0000(svn r3612) - RoadStop->slot[] stores a vehicle index. Adjust its type and use INVALID_VEHICLE instead of nonsense INVALID_SLOT.
peter1138 [Sat, 18 Feb 2006 14:11:23 +0000] rev 3032
(svn r3612) - RoadStop->slot[] stores a vehicle index. Adjust its type and use INVALID_VEHICLE instead of nonsense INVALID_SLOT.

Fri, 17 Feb 2006 20:24:17 +0000(svn r3611) -Feature: [OSX profiling] Shark (Xcode's profiling tool) can now relate CPU usage to lines in the source files
bjarni [Fri, 17 Feb 2006 20:24:17 +0000] rev 3031
(svn r3611) -Feature: [OSX profiling] Shark (Xcode's profiling tool) can now relate CPU usage to lines in the source files
Now OSX users can tell what lines in the C code that keeps the CPU busy instead of just ASM code
Note: PROFILE needs to be enabled in Makefile.config for this to work

Fri, 17 Feb 2006 16:42:08 +0000(svn r3610) And one more (see r3608/r3609)
tron [Fri, 17 Feb 2006 16:42:08 +0000] rev 3030
(svn r3610) And one more (see r3608/r3609)

Fri, 17 Feb 2006 16:39:24 +0000(svn r3609) Some more simplification in the same function as r3608
tron [Fri, 17 Feb 2006 16:39:24 +0000] rev 3029
(svn r3609) Some more simplification in the same function as r3608

Fri, 17 Feb 2006 16:24:56 +0000(svn r3608) No functional change, just make some code more comprehensible: Reduce variable scope, remove write-only variables, turn do-while-loops with multiple induction variables into canonical for-loops
tron [Fri, 17 Feb 2006 16:24:56 +0000] rev 3028
(svn r3608) No functional change, just make some code more comprehensible: Reduce variable scope, remove write-only variables, turn do-while-loops with multiple induction variables into canonical for-loops

Thu, 16 Feb 2006 20:51:06 +0000(svn r3607) - Fix indenting of PerformanceRatingDetailWndProc()
peter1138 [Thu, 16 Feb 2006 20:51:06 +0000] rev 3027
(svn r3607) - Fix indenting of PerformanceRatingDetailWndProc()

Wed, 15 Feb 2006 12:53:36 +0000(svn r3606) - NewGRF: Convert from TTDP railtype values to our own railtypes. (These are currently the same, but won't be forever...)
peter1138 [Wed, 15 Feb 2006 12:53:36 +0000] rev 3026
(svn r3606) - NewGRF: Convert from TTDP railtype values to our own railtypes. (These are currently the same, but won't be forever...)

Tue, 14 Feb 2006 09:31:05 +0000(svn r3605) - Remove silly macro and fix indenting in DrawVehicleRefitWindow()
peter1138 [Tue, 14 Feb 2006 09:31:05 +0000] rev 3025
(svn r3605) - Remove silly macro and fix indenting in DrawVehicleRefitWindow()

Tue, 14 Feb 2006 07:32:45 +0000(svn r3604) Remove two unnecessary local variables
tron [Tue, 14 Feb 2006 07:32:45 +0000] rev 3024
(svn r3604) Remove two unnecessary local variables

Mon, 13 Feb 2006 22:19:23 +0000(svn r3603) - NewGRF: Support loading of AI rank data
peter1138 [Mon, 13 Feb 2006 22:19:23 +0000] rev 3023
(svn r3603) - NewGRF: Support loading of AI rank data

Mon, 13 Feb 2006 22:13:02 +0000(svn r3602) - Move _railveh_score data to _rail_vehicle_info->ai_rank and remove global variable to return data as we can now access this directly.
peter1138 [Mon, 13 Feb 2006 22:13:02 +0000] rev 3022
(svn r3602) - Move _railveh_score data to _rail_vehicle_info->ai_rank and remove global variable to return data as we can now access this directly.

Mon, 13 Feb 2006 22:11:03 +0000(svn r3601) -Codechange: special for Tron, and he was absolutely correct in thisone: added a comment for last commit
truelight [Mon, 13 Feb 2006 22:11:03 +0000] rev 3021
(svn r3601) -Codechange: special for Tron, and he was absolutely correct in thisone: added a comment for last commit