------------------------------------------------------------------------ r3651 | truelight | 2006-02-21 19:42:42 +0000 (Tue, 21 Feb 2006) | 1 line -Fix: r3646 fixed some lame compiler, but broke others... this fixes it for some more compilers ------------------------------------------------------------------------ r3650 | tron | 2006-02-21 18:15:59 +0000 (Tue, 21 Feb 2006) | 1 line Fix braino in r3649, spotted by Mihamix ------------------------------------------------------------------------ r3649 | tron | 2006-02-21 18:07:35 +0000 (Tue, 21 Feb 2006) | 1 line Turn several if-cascades into switch()es ------------------------------------------------------------------------ r3648 | Darkvater | 2006-02-21 17:48:40 +0000 (Tue, 21 Feb 2006) | 1 line - Fix typo in r3647, don't ask me how it got there s/_/./ ------------------------------------------------------------------------ r3647 | Darkvater | 2006-02-21 17:29:53 +0000 (Tue, 21 Feb 2006) | 1 line Some style-changes to the parameter parser ------------------------------------------------------------------------ r3646 | Darkvater | 2006-02-21 15:57:09 +0000 (Tue, 21 Feb 2006) | 1 line - 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) ------------------------------------------------------------------------ r3645 | tron | 2006-02-21 07:44:33 +0000 (Tue, 21 Feb 2006) | 1 line Fix stupid typos in last (r3644) commit *sigh* ------------------------------------------------------------------------ r3644 | tron | 2006-02-21 07:41:54 +0000 (Tue, 21 Feb 2006) | 1 line Don't use FindLandscapeHeightByTile() when it's overkill - often it was just a complicated way of writing GetTileSlope(tile, NULL) ------------------------------------------------------------------------ r3643 | tron | 2006-02-21 06:43:53 +0000 (Tue, 21 Feb 2006) | 1 line 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 ------------------------------------------------------------------------ r3642 | Darkvater | 2006-02-21 01:15:59 +0000 (Tue, 21 Feb 2006) | 1 line 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 ------------------------------------------------------------------------ r3641 | Darkvater | 2006-02-20 23:40:53 +0000 (Mon, 20 Feb 2006) | 1 line - Rename MusicFilesettings 'btn_down' to more sensible 'playing' ------------------------------------------------------------------------ r3640 | Darkvater | 2006-02-20 23:01:58 +0000 (Mon, 20 Feb 2006) | 1 line - Remove win32-only variables from variables.h and put them into win32_v.c. Also ifdef the win32 specific configuration file settings. ------------------------------------------------------------------------ r3639 | Darkvater | 2006-02-20 22:57:32 +0000 (Mon, 20 Feb 2006) | 1 line Silence warnings on gcc about {} initializers around unions ------------------------------------------------------------------------ r3631 | peter1138 | 2006-02-20 21:49:31 +0000 (Mon, 20 Feb 2006) | 1 line - 2cc: Remove use of some temporary variables and perform minor optimization in the form of the ternary operator. ------------------------------------------------------------------------ r3628 | Darkvater | 2006-02-20 19:58:46 +0000 (Mon, 20 Feb 2006) | 1 line - 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. ------------------------------------------------------------------------ r3627 | Darkvater | 2006-02-20 19:43:26 +0000 (Mon, 20 Feb 2006) | 1 line - Change all hardcoded 255 max-saveload versions with the define SL_MAX_VERSION ------------------------------------------------------------------------ r3626 | Darkvater | 2006-02-20 19:42:39 +0000 (Mon, 20 Feb 2006) | 1 line - 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. ------------------------------------------------------------------------ r3625 | Darkvater | 2006-02-20 19:12:46 +0000 (Mon, 20 Feb 2006) | 1 line - Move sl_version inside the functions where they are used to force usage. ------------------------------------------------------------------------ r3624 | Darkvater | 2006-02-20 19:04:18 +0000 (Mon, 20 Feb 2006) | 4 lines - 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 ------------------------------------------------------------------------ r3623 | Darkvater | 2006-02-20 18:01:38 +0000 (Mon, 20 Feb 2006) | 1 line - Standardize DEBUG() messages in saveload.c ------------------------------------------------------------------------ r3622 | Darkvater | 2006-02-20 17:54:25 +0000 (Mon, 20 Feb 2006) | 1 line - 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 :) ------------------------------------------------------------------------ r3621 | Darkvater | 2006-02-20 17:49:26 +0000 (Mon, 20 Feb 2006) | 1 line - Codechange: Only define the server and bans list if network is enabled. Preparatory work for saving patches/settings to savegame. ------------------------------------------------------------------------ r3620 | peter1138 | 2006-02-20 09:26:07 +0000 (Mon, 20 Feb 2006) | 2 lines - 2cc: Replace use of macro to determine colour map with a function call for drawing of vehicles. ------------------------------------------------------------------------ r3619 | Darkvater | 2006-02-20 01:36:48 +0000 (Mon, 20 Feb 2006) | 1 line - Codechange: Simplify a NullStruct initialization in the vehicle array (merge the two together to avoid confusion) ------------------------------------------------------------------------ r3618 | bjarni | 2006-02-19 10:21:01 +0000 (Sun, 19 Feb 2006) | 6 lines -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 ------------------------------------------------------------------------ r3617 | tron | 2006-02-18 18:27:17 +0000 (Sat, 18 Feb 2006) | 1 line Fix warning introduced in r3616 ------------------------------------------------------------------------ r3616 | tron | 2006-02-18 17:27:06 +0000 (Sat, 18 Feb 2006) | 1 line Style sweep ------------------------------------------------------------------------ r3615 | tron | 2006-02-18 16:20:50 +0000 (Sat, 18 Feb 2006) | 1 line Remove the Quartz key codes from the public cocoa video driver interface ------------------------------------------------------------------------ r3614 | tron | 2006-02-18 14:52:42 +0000 (Sat, 18 Feb 2006) | 1 line turn 2 do-while-loop with 2 induction variables each into canocical for loops ------------------------------------------------------------------------ r3613 | tron | 2006-02-18 14:41:24 +0000 (Sat, 18 Feb 2006) | 1 line Some more const, indentation, whitespace and similar stuff ------------------------------------------------------------------------ r3612 | peter1138 | 2006-02-18 14:11:23 +0000 (Sat, 18 Feb 2006) | 1 line - RoadStop->slot[] stores a vehicle index. Adjust its type and use INVALID_VEHICLE instead of nonsense INVALID_SLOT. ------------------------------------------------------------------------ r3611 | bjarni | 2006-02-17 20:24:17 +0000 (Fri, 17 Feb 2006) | 4 lines -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 ------------------------------------------------------------------------ r3610 | tron | 2006-02-17 16:42:08 +0000 (Fri, 17 Feb 2006) | 1 line And one more (see r3608/r3609) ------------------------------------------------------------------------ r3609 | tron | 2006-02-17 16:39:24 +0000 (Fri, 17 Feb 2006) | 1 line Some more simplification in the same function as r3608 ------------------------------------------------------------------------ r3608 | tron | 2006-02-17 16:24:56 +0000 (Fri, 17 Feb 2006) | 1 line 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 ------------------------------------------------------------------------ r3607 | peter1138 | 2006-02-16 20:51:06 +0000 (Thu, 16 Feb 2006) | 1 line - Fix indenting of PerformanceRatingDetailWndProc() ------------------------------------------------------------------------