train_gui.c
Sun, 20 Aug 2006 19:05:28 +0000 rubidium (svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant.
Sat, 19 Aug 2006 09:31:22 +0000 truelight (svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
Wed, 16 Aug 2006 11:39:55 +0000 rubidium (svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
Tue, 15 Aug 2006 16:49:48 +0000 rubidium (svn r5918) -Cleanup: rename ConvertDayToYMD/ConvertYMDToDay as they really convert a Date to/from a YearMonthDay.
Tue, 15 Aug 2006 15:18:03 +0000 rubidium (svn r5916) -Cleanup: use MIN_YEAR/MAX_YEAR for the year boundaries and BASE_YEAR when comparing _cur_year with a 'full' year.
Tue, 15 Aug 2006 09:28:27 +0000 Darkvater (svn r5910) Fix some more warnings on MSVC by using (void*) casts. Followup of r5907.
Mon, 14 Aug 2006 20:25:29 +0000 tron (svn r5894) Remove a totally unnecessary indirection in the vehicle sorter code. Less code, less data, simply better
Mon, 14 Aug 2006 14:21:15 +0000 rubidium (svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
Sat, 12 Aug 2006 10:41:29 +0000 bjarni (svn r5853) -Fix: [elrails] FS#178 Electric Trains can leave Conventional Depot
Wed, 26 Jul 2006 03:33:12 +0000 belugas (svn r5609) CodeChange : Apply coding style
Wed, 28 Jun 2006 17:46:55 +0000 belugas (svn r5404) Fix (r5391) : Yet another typo. Nothing specatular :)
Tue, 27 Jun 2006 21:25:53 +0000 tron (svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
Tue, 20 Jun 2006 07:07:28 +0000 peter1138 (svn r5318) - Allow room for a single pixel overflow on the first engine when drawing a train's image.
Sun, 18 Jun 2006 15:28:29 +0000 tron (svn r5309) Partially fix the rail header dependency fiasco: rail_map.h now depends on rail.h and not the other way round anymore
Sun, 11 Jun 2006 14:56:21 +0000 tron (svn r5225) Some windows periodically check if their parent exists - if not they close themselves
Sat, 10 Jun 2006 08:37:41 +0000 tron (svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
Sun, 04 Jun 2006 09:28:33 +0000 tron (svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough.
Tue, 30 May 2006 21:19:46 +0000 peter1138 (svn r5046) - Implement smooth horizontal depot scrolling by setting up a clipping area to draw the train image. This fixes a couple of usability issues when shorter wagons are used in the depot; shorter wagons scrolled at a different speed, and not all wagons were visible sometimes.
Sun, 21 May 2006 16:18:58 +0000 tron (svn r4943) uint tile -> TileIndex tile, byte player -> PlayerID player
Sun, 21 May 2006 13:51:36 +0000 tron (svn r4940) Remove the dubious feature of remembering the last built depot. It serves no real purpose except causing confusion
Sun, 14 May 2006 20:58:12 +0000 peter1138 (svn r4869) - NewGRF: support setting train list vehicle width to 32 instead of 29 pixels, for sets which use 32 pixel long engines/wagons.
Sun, 14 May 2006 20:38:09 +0000 peter1138 (svn r4868) - Codechange: in the train detail window, don't call DrawTrainImage() for each row, as we already loop to find the vehicles to
Mon, 08 May 2006 10:01:34 +0000 peter1138 (svn r4781) - NewGRF: give _traininfo_vehicle_pitch a proper declaration
Fri, 28 Apr 2006 19:56:18 +0000 peter1138 (svn r4610) - If a wagon has a capacity of 0 (zero), display it in the purchase list as N/A.
Sun, 23 Apr 2006 22:35:37 +0000 peter1138 (svn r4562) - NewGRF: Add additional vehicle text to train engine and wagon purchase information. Other vehicle types to come.
Mon, 10 Apr 2006 07:15:58 +0000 tron (svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
Sat, 08 Apr 2006 12:04:23 +0000 peter1138 (svn r4322) - Codechange: Remove conversion of kmh to mph from gui code to within the units conversion system, in string.c. This means displaying kmh requires no conversion, instead of being convert from kmh to mph, and then back to kmh again.
Fri, 31 Mar 2006 17:40:31 +0000 peter1138 (svn r4211) - Removed measuring units from the names of two strings.
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.
Fri, 31 Mar 2006 08:39:10 +0000 peter1138 (svn r4192) - Fix: In the depot, moving wagons from the end of a very long train to a short train where the short train was scrolled off the window would cause a game crash. (Thanks to SimonRC for reporting.)
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.
Sat, 18 Mar 2006 13:00:32 +0000 bjarni (svn r3944) -Feature: it's now possible to turn a single unit in a train
Fri, 17 Mar 2006 10:10:31 +0000 tron (svn r3916) Get/Set the rail type by [GS]etRailType{Crossing,OnBridge,}()
Wed, 08 Mar 2006 06:55:33 +0000 tron (svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends
Mon, 20 Feb 2006 21:49:31 +0000 peter1138 (svn r3631) - 2cc: Remove use of some temporary variables and perform minor optimization in the form of the ternary operator.
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.
Sat, 11 Feb 2006 09:24:51 +0000 peter1138 (svn r3588) - Refit: Use only one global to return the refit capacity rather than one per vehicle type.
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)
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.
Thu, 02 Feb 2006 08:03:10 +0000 peter1138 (svn r3521) - Feature: Allow trains details view to be resized.
Thu, 02 Feb 2006 07:15:46 +0000 tron (svn r3520) Remove unused parameters from some functions
Wed, 01 Feb 2006 07:36:15 +0000 tron (svn r3511) More whitespace ([FS#46] by Rubidium)
Wed, 01 Feb 2006 06:32:03 +0000 tron (svn r3510) Fiddle with whitespace and parentheses
Sat, 21 Jan 2006 22:09:25 +0000 peter1138 (svn r3415) - Fix: Disable the clone and refit buttons in the train view when viewing another player's vehicles, or as a spectator. (thanks to UnderBuilder for pointing this out)
Sat, 07 Jan 2006 16:47:59 +0000 peter1138 (svn r3388) - NewGRF: Allow train running cost class to differ from engine class. Also fix typo in r3384.
Fri, 06 Jan 2006 09:50:43 +0000 peter1138 (svn r3370) Improve alignment of text within total cargo tab of train view window
Thu, 05 Jan 2006 21:35:54 +0000 tron (svn r3367) Unify the 4 distinct CMD_CHANGE_{AIRCRAFT,ROADVEH,SHIP,TRAIN}_SERVICE_INT commands into one CMD_CHANGE_SERVICE_INT command.
Thu, 29 Dec 2005 19:06:44 +0000 tron (svn r3354) Fix a typo, which survived for about 3000 revisions: s/SRT_SORT_BY/STR_SORT_BY/ (noticed by chu)
Wed, 28 Dec 2005 09:40:26 +0000 peter1138 (svn r3351) Make sort criteria selection widgets in player train list consistent with those widgets in other vehicle type lists. (Stops "Total capacity per cargo type" overflowing)
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.
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
Sun, 06 Nov 2005 13:42:26 +0000 peter1138 (svn r3148) -NewGRF, Feature: Add support for cargo refitting specification by cargo classes.
Sat, 05 Nov 2005 16:07:26 +0000 peter1138 (svn r3139) -NewGRF, Feature: support for articulated rail vehicles. This is used, for example, by coal tenders.
Fri, 04 Nov 2005 07:38:26 +0000 peter1138 (svn r3130) Calculate shorter wagon lengths more precisely in train depot window. This affects wagon position, the scroll bar, and the train length counter. No trial and error is required to get the correct length now.
Sun, 30 Oct 2005 21:47:42 +0000 peter1138 (svn r3107) -NewGRF: Move train y-position offset adjustment to remove code duplication, and make it apply only to vehicles with a custom image.
Sat, 29 Oct 2005 20:28:43 +0000 tron (svn r3099) Copy&pasto in r3098
Fri, 28 Oct 2005 20:04:54 +0000 tron (svn r3098) static, const, uint -> TileIndex, indentation, bracing, unused return values, ... mostly related to the clone vehicle GUI
Sun, 23 Oct 2005 13:04:44 +0000 tron (svn r3078) Some more stuff, which piled up: