------------------------------------------------------------------------ r3673 | bjarni | 2006-02-25 18:11:11 +0000 (Sat, 25 Feb 2006) | 3 lines -Codechange: [OSX] changed the makefile to autodetect if it compiles on G5 and then adds flags to optimise for G5 This will not interfere with crosscompiling or universal binaries ------------------------------------------------------------------------ r3672 | bjarni | 2006-02-25 16:57:17 +0000 (Sat, 25 Feb 2006) | 2 lines -Fix: [makefile] fixed bug where some settings where overwritten with the default ones when MAKEFILE_VERSION was changed ------------------------------------------------------------------------ r3671 | bjarni | 2006-02-24 22:12:11 +0000 (Fri, 24 Feb 2006) | 2 lines -Code cleanup: fixed style and removed commented out code in video/cocoa_v.m ------------------------------------------------------------------------ r3670 | bjarni | 2006-02-24 22:05:20 +0000 (Fri, 24 Feb 2006) | 6 lines -Codechange: [OSX] rewrote a part of the cocoa video driver to speed it up by 1000% in fullscreen rewrote QZ_DrawScreen to only redraw dirty rectangles (instead of everything) This reduce the OpenTTD time spent on this function from 75% to 6,7% (in main menu) Note: window mode is unaffected by this commit Note: the mouse pointer can now leave artefacts in debug mode ------------------------------------------------------------------------ r3669 | tron | 2006-02-24 20:52:32 +0000 (Fri, 24 Feb 2006) | 4 lines Really wipe all data when making a void tile Thanks to Belugas, egladil and Rubidium for their inspiration and hard work, which all this stuff is based on ------------------------------------------------------------------------ r3668 | tron | 2006-02-24 20:38:08 +0000 (Fri, 24 Feb 2006) | 1 line Add a function to turn a tile into a tree tile ------------------------------------------------------------------------ r3667 | tron | 2006-02-24 20:35:37 +0000 (Fri, 24 Feb 2006) | 1 line Fix the cause of an assertion I triggered in r3665 ------------------------------------------------------------------------ r3666 | peter1138 | 2006-02-24 20:09:50 +0000 (Fri, 24 Feb 2006) | 2 lines Fix up svn properties and add header files to Windows project files. ------------------------------------------------------------------------ r3665 | tron | 2006-02-24 19:56:24 +0000 (Fri, 24 Feb 2006) | 1 line Add a function to turn a tile into a clear tile ------------------------------------------------------------------------ r3664 | tron | 2006-02-24 19:52:26 +0000 (Fri, 24 Feb 2006) | 1 line Add a function to turn a tile into a void tile ------------------------------------------------------------------------ r3663 | peter1138 | 2006-02-24 17:52:07 +0000 (Fri, 24 Feb 2006) | 2 lines - Fix: [Multistop] Check the status of the destination road stop instead of a station's first road stop. This only has effect with road vehicle queuing disabled. ------------------------------------------------------------------------ r3662 | Darkvater | 2006-02-23 20:53:30 +0000 (Thu, 23 Feb 2006) | 1 line Fix regression FS#58 with union, endiannes and static decleration problems. Removed the union. ------------------------------------------------------------------------ r3661 | bjarni | 2006-02-23 18:52:13 +0000 (Thu, 23 Feb 2006) | 7 lines -Fix [PPC computers] quick dirty fix for failure to start the game on BE CPUs 3626 broke the game on Big endian CPUs and this is a quick dirty fix so the nightly builds for OSX and MorphOS will work again the game will still fail on 64 bit BE CPUs note: the game runs in 32 bit mode on G5, so it will work on G5 we need to make a better fix for this, but we also need the nightly builds to work ------------------------------------------------------------------------ r3660 | tron | 2006-02-23 12:24:19 +0000 (Thu, 23 Feb 2006) | 1 line Convert further road bits and type references to the functions/enums ------------------------------------------------------------------------ r3659 | tron | 2006-02-23 11:53:48 +0000 (Thu, 23 Feb 2006) | 1 line Add function to get the road bits of a level crossing ------------------------------------------------------------------------ r3658 | tron | 2006-02-23 08:20:28 +0000 (Thu, 23 Feb 2006) | 1 line Add functions and symbolic names to retrieve road tile types and road pieces ------------------------------------------------------------------------ r3657 | tron | 2006-02-23 07:32:46 +0000 (Thu, 23 Feb 2006) | 1 line Fix indentation and remove now unused variable, which i forgot in r3655 ------------------------------------------------------------------------ r3656 | tron | 2006-02-23 07:31:36 +0000 (Thu, 23 Feb 2006) | 1 line Simplify the overly complicated check for road pieces under a bridge ------------------------------------------------------------------------ r3655 | tron | 2006-02-23 07:26:49 +0000 (Thu, 23 Feb 2006) | 1 line Simplify a boolean expression and turn 3 if-cascades into switches ------------------------------------------------------------------------ r3654 | tron | 2006-02-22 21:35:45 +0000 (Wed, 22 Feb 2006) | 1 line Turn another if-cascade into a switch ------------------------------------------------------------------------ r3653 | tron | 2006-02-22 21:11:31 +0000 (Wed, 22 Feb 2006) | 2 lines -Fix: You didn't pay for terraforming at the end tile when building a tunnel ------------------------------------------------------------------------ r3652 | tron | 2006-02-22 21:09:55 +0000 (Wed, 22 Feb 2006) | 3 lines Rewrite CmdBuildTunnel in the hope to make it a bit more comprehensible This implementation is also significantly shorter because it removes many redundant checks ------------------------------------------------------------------------ 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 ------------------------------------------------------------------------