vehicle_gui.c
Wed, 28 Jun 2006 06:21:03 +0000 tron (svn r5399) Simplify a conditional expression: (a && b) || (!a && !b) -> a == b
Wed, 14 Jun 2006 11:05:30 +0000 tron (svn r5262) Add symbolic names for the aircraft subtypes. not perfect, but better than raw numbers
Sun, 23 Apr 2006 22:33:10 +0000 peter1138 (svn r4561) - NewGRF: implement most of callback 0x23: additional text in vehicle purchase windows.
Mon, 10 Apr 2006 11:14:33 +0000 peter1138 (svn r4343) [Autoreplace] Fix drawing of train list for outdated engines. Fixes FS#106
Sat, 01 Apr 2006 15:19:16 +0000 peter1138 (svn r4229) [elrail & autoreplace] Always show compatible rail vehicles in the left list, and only the selected rail type in the right list, to
Fri, 31 Mar 2006 12:59:43 +0000 peter1138 (svn r4201) - Codechange: Do for _engine_info[] what we do for _*_vehicle_info[]; create and use a function to retrieve data, and ensure constness.
Wed, 29 Mar 2006 16:30:26 +0000 celestar (svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of code and proofreading, thanks to peter1138 for another lot of code and ideas.
Mon, 20 Feb 2006 09:26:07 +0000 peter1138 (svn r3620) - 2cc: Replace use of macro to determine colour map with a function call for drawing of vehicles.
Fri, 17 Feb 2006 16:42:08 +0000 tron (svn r3610) And one more (see r3608/r3609)
Fri, 17 Feb 2006 16:39:24 +0000 tron (svn r3609) Some more simplification in the same function as r3608
Fri, 17 Feb 2006 16:24:56 +0000 tron (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
Tue, 14 Feb 2006 09:31:05 +0000 peter1138 (svn r3605) - Remove silly macro and fix indenting in DrawVehicleRefitWindow()
Mon, 06 Feb 2006 09:18:04 +0000 tron (svn r3564) Several smaller changes:
Sat, 04 Feb 2006 21:48:46 +0000 peter1138 (svn r3546) - NewGRF feature: Implement rail vehicle 'property' 0x1A: allows shuffling order of rail vehicle purchase list (and replace vehicle list)
Sat, 04 Feb 2006 18:25:07 +0000 bjarni (svn r3535) -Feature: [autoreplace] allow autoreplacing of train wagons
Fri, 03 Feb 2006 18:32:59 +0000 peter1138 (svn r3528) - Feature: Allow sorting of vehicle lists by model or value (based on meush's work)
Fri, 03 Feb 2006 12:55:21 +0000 peter1138 (svn r3524) - Split newgrf features from engine.[ch] into newgrf_engine.[ch], and add the new files to project files.
Wed, 01 Feb 2006 06:32:03 +0000 tron (svn r3510) Fiddle with whitespace and parentheses
Thu, 12 Jan 2006 15:52:18 +0000 peter1138 (svn r3396) - Autoreplace changes:
Thu, 05 Jan 2006 16:51:10 +0000 tron (svn r3366) Make an unnecessarily global variable local
Mon, 02 Jan 2006 19:55:09 +0000 peter1138 (svn r3359) - Autoreplace GUI: When starting or stopping a replacement, redraw the replace window after the command has completed, rather than after calling the command.
Thu, 29 Dec 2005 12:42:59 +0000 tron (svn r3353) Simplify the automatic length adjustment algorithm for replacing trains: Use the length of the train before the replacement as reference length
Wed, 14 Dec 2005 06:28:48 +0000 tron (svn r3298) Remove unused and write-only variables
Tue, 13 Dec 2005 12:31:48 +0000 peter1138 (svn r3292) - Autoreplace: Disallow replacing to an engine type that already has a replacement set up; this stops loops being set up.
Tue, 13 Dec 2005 09:57:07 +0000 peter1138 (svn r3291) - Codechange, Autoreplace: Replace int with EngineID and -1 with INVALID_ENGINE, as appropriate.
Wed, 07 Dec 2005 15:48:52 +0000 peter1138 (svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect their actual use, and add "Close Window" tooltip where missing.
Sat, 26 Nov 2005 16:41:14 +0000 peter1138 (svn r3239) - Codechange: Introduce and use helper functions for engine replacement code.
Fri, 18 Nov 2005 23:41:03 +0000 bjarni (svn r3218) -Feature: Multiheaded train engines will now stay in the same train
Mon, 14 Nov 2005 19:48:04 +0000 tron (svn r3181) -Bracing
Sun, 13 Nov 2005 13:43:55 +0000 tron (svn r3172) static, const
Mon, 07 Nov 2005 23:20:47 +0000 bjarni (svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too long trains
Sun, 06 Nov 2005 13:42:26 +0000 peter1138 (svn r3148) -NewGRF, Feature: Add support for cargo refitting specification by cargo classes.
Sun, 30 Oct 2005 21:35:48 +0000 peter1138 (svn r3106) -Autoreplace feature: Continue to show old vehicles in replace window after all player's vehicles of that type have been replaced. This allows the replacement to be removed. These vehicles are shown in grey instead of the player's colour.
Tue, 25 Oct 2005 19:52:25 +0000 peter1138 (svn r3089) Fix possible issue with out-of-bounds array access in replace vehicle gui, and add brief commenting.
Mon, 24 Oct 2005 20:12:39 +0000 bjarni (svn r3082) made ChangeVehicleViewWindow() more readable (added in last commit)
Mon, 24 Oct 2005 19:40:48 +0000 bjarni (svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace
Sun, 23 Oct 2005 13:04:44 +0000 tron (svn r3078) Some more stuff, which piled up:
Tue, 18 Oct 2005 11:23:58 +0000 tron (svn r3059) Use bitfields to encode railtype and climates of engines instead of manual shifting/anding
Sun, 16 Oct 2005 09:13:04 +0000 tron (svn r3049) Replace byte/int/uint by RailType where appropriate
Sun, 16 Oct 2005 07:58:15 +0000 tron (svn r3048) Replace 0/1/2 by RAILTYPE_RAIL/MONO/MAGLEV where appropriate
Sat, 01 Oct 2005 12:43:34 +0000 tron (svn r3003) Change int, uint, uin16 and byte to EngineID where appropriate, plus some related changes (mostly casts)
Tue, 27 Sep 2005 18:51:04 +0000 tron (svn r2992) Use PlayerID, StationID and INVALID_STATION instead of int, int and -1
Mon, 26 Sep 2005 13:38:12 +0000 tron (svn r2988) static where static is due
Fri, 23 Sep 2005 07:44:03 +0000 peter1138 (svn r2974) -Fix: Drag and drop selection on drop down boxes didn't select correct item when some items were hidden.
Sun, 18 Sep 2005 20:56:44 +0000 Darkvater (svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Mon, 29 Aug 2005 22:27:22 +0000 Darkvater (svn r2901) Refix 'replace window' with wrong string-etc. coordinates. Also clean up, and make window-title a bit more meaningful (specify vehicle type replaced)
Sat, 20 Aug 2005 21:16:46 +0000 Darkvater (svn r2880) Fix graphical glitch in replace window (text at wrong coordinates)
Sat, 06 Aug 2005 16:07:22 +0000 bjarni (svn r2817) -Codechange: [autoreplace]: moved autoreplace and autorenew to serverside
Fri, 05 Aug 2005 20:22:06 +0000 tron (svn r2812) Move variables, which only vehicle_gui.c needs to know about, there
Wed, 27 Jul 2005 10:11:45 +0000 bjarni (svn r2724) -Fix: [Autoreplace] made the pulldown menu read GetPlayer(_local_player)->avail_railtypes - this removes the need for updating this code if we add more railtypes and it also allows the menu to show maglev when monorail is not available
Sun, 24 Jul 2005 14:12:37 +0000 tron (svn r2701) Insert Id tags into all source files
Fri, 22 Jul 2005 07:02:20 +0000 tron (svn r2673) Include functions.h directly, not globally via openttd.h
Thu, 21 Jul 2005 22:15:02 +0000 tron (svn r2669) Shuffle some more stuff around to reduce dependencies
Thu, 21 Jul 2005 19:36:43 +0000 tron (svn r2664) Remove depedency on player.h from variables.h
Tue, 07 Jun 2005 18:13:49 +0000 tron (svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[]
Tue, 07 Jun 2005 01:21:56 +0000 hackykid (svn r2429) - Fix: Oops, forgot to increase the size of the autoreplace window to fit the extra info from powered wagons.
Sun, 05 Jun 2005 23:01:10 +0000 hackykid (svn r2413) - Codechange: Rewrite the displaying of purchase details a bit, make it easyer to add lines later.
Thu, 02 Jun 2005 19:30:21 +0000 Darkvater (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
Thu, 26 May 2005 16:31:32 +0000 hackykid (svn r2365) - Change: [refitting] Make refitting capacities for trains newgrf compatible. Train vehicles can now carry twice as much mail/goods as other cargo, and four times as much passengers.
Sat, 14 May 2005 12:36:16 +0000 Darkvater (svn r2306) - CodeChange: Check the last commands; refits. This needed an extensive rewrite and global/local-cargo ID juggling and bitmasking. However with this done it looks better as well and is compatible with newgrf handling. Big thanks to HackyKid for doing most of the work. This also closes patch "[ 1199277 ] Command checks"