train_cmd.c
Sun, 04 Jun 2006 17:49:16 +0000 peter1138 (svn r5104) - When refitting a vehicle to its existing cargo type, don't lose the cargo onboard (useful when adding wagons to a train)
Sun, 04 Jun 2006 17:38:48 +0000 peter1138 (svn r5103) - Add cargo subtype parameter to refit commands (mart3p)
Sun, 04 Jun 2006 09:28:33 +0000 tron (svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough.
Sun, 04 Jun 2006 09:13:59 +0000 KUDr (svn r5093) -CodeChange: [YAPF] min. debug level changed from 1 to 3 and 4 for frequent debug messages (performance stats)
Fri, 02 Jun 2006 13:15:50 +0000 peter1138 (svn r5071) - Fix (FS#184): "Erroneous train reversal on waypoints". When processing the next train order, do not even consider reversing the train if the last order was to a waypoint.
Fri, 02 Jun 2006 13:05:41 +0000 celestar (svn r5070) Merged the bridge branch
Thu, 01 Jun 2006 09:43:39 +0000 celestar (svn r5064) -Fix: Remove stay debug stuff from lat commit. (thanks peter1138)
Thu, 01 Jun 2006 09:41:35 +0000 celestar (svn r5063) -Codechange: Add a function to determine the length of a platform (request by KUDr)
Wed, 31 May 2006 18:00:08 +0000 peter1138 (svn r5061) - NewGRF: always use visual effect callback if it is defined, not just for powered wagons.
Sat, 27 May 2006 16:12:16 +0000 KUDr (svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
Fri, 19 May 2006 10:04:03 +0000 peter1138 (svn r4910) - NewGRF: add and initialize cargo subtype for vehicle visual variations
Sat, 13 May 2006 12:03:44 +0000 peter1138 (svn r4860) - NewGRF: remove a missed extern for _traininfo_vehicle_pitch
Thu, 11 May 2006 13:31:14 +0000 bjarni (svn r4826) -Fix: [autoreplace] fixed possible problem when autoreplacing and was number of vehicles (of a type, not total) was reached
Thu, 11 May 2006 12:42:24 +0000 bjarni (svn r4825) - Fix [clone FS#159]: Game crashes when cloning reaches train-limit.
Tue, 09 May 2006 08:17:33 +0000 rubidium (svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
Sun, 07 May 2006 07:55:05 +0000 tron (svn r4765) Add GetTileMaxZ(), which returns the height of the highest corner of a tile, and use it to simplify the code in a few places
Sat, 06 May 2006 14:32:16 +0000 tron (svn r4750) -Fix: Trains could enter certain sloped rail tiles under bridges with incompatible rail type
Wed, 03 May 2006 06:24:14 +0000 peter1138 (svn r4706) - NewGRF: add the correct default error message for the wagon attach callback.
Tue, 02 May 2006 21:43:47 +0000 peter1138 (svn r4703) - NewGRF: add support for callback 0x1D, "can wagon be attached". This can be used to disallow freight wagons to be placed in passenger trains, along with other uses.
Tue, 25 Apr 2006 07:32:33 +0000 tron (svn r4572) Remove vehicle_leave_tile_proc
Sun, 23 Apr 2006 19:35:36 +0000 tron (svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
Sun, 23 Apr 2006 13:48:16 +0000 tron (svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
Fri, 21 Apr 2006 17:15:05 +0000 celestar (svn r4501) -Fix: (FS#129) When, in a train that head multiple engines in front, the _first_ of those engines is sold, all the orders are copied to the second engine (to ensure "seamless" operation). However, during this operation, it was forgotten to update the prev_shared and next_shared pointers of the new head engine AND the next_shared and prev_shared of the share partners.
Wed, 19 Apr 2006 16:10:17 +0000 celestar (svn r4479) -Fix (FS#90) electric engines (or rather their pantographs) no longer emit sparks when engine is pulled on convrail (MeusH)
Sat, 15 Apr 2006 20:07:42 +0000 Darkvater (svn r4435) - Fix: an assertion triggered when trying to remove a bridge with the remove-tool (r4348 surfaced this). In CmdRemoveRoad tiletype was not checked for ownership. Intorudce IsLevelCrossingTile() which checks if a tile is a crossing without knowing the type. Suggested by peter1138 and Tron.
Fri, 14 Apr 2006 10:48:54 +0000 tron (svn r4412) When a vehicle is in a depot or tunnel it's always flagged as VS_HIDDEN. So after checking for VS_HIDDEN and the result is false there's no need to check if it's flagged as being in a depot or tunnel
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
Sun, 09 Apr 2006 18:01:06 +0000 celestar (svn r4338) -Fix (FS#105): Bug introduced in r4290. IsLevelCrossing does NOT check the tile type, it assumes the tile type IS MP_STREET
Wed, 05 Apr 2006 19:08:09 +0000 celestar (svn r4290) -Fix: fixed power computation for mixed consists on level crossings (michi_cc)
Sat, 01 Apr 2006 14:53:11 +0000 bjarni (svn r4226) -Fix: [elrails] it's no longer possible to build electric engines in non-electric depots
Fri, 31 Mar 2006 10:14:25 +0000 peter1138 (svn r4198) - NewGRF: Rename GetCallBackResult() to GetVehicleCallback(), as other types will exist later, and use separate parameters instead of bitshifting.
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.
Sun, 26 Mar 2006 21:15:09 +0000 Darkvater (svn r4125) - Feature: Add a general TIC() TOC() mechanism using rdtsc or something similar on non-i386 architectures to performance-tune (critical) code. Some systems are probably missing, but those can be added later.
Sun, 26 Mar 2006 14:41:39 +0000 celestar (svn r4113) Moved all relevant map functions for stations to station_map.[ch]
Fri, 24 Mar 2006 15:24:16 +0000 celestar (svn r4088) -Codechange: Introduce {Unb,B}arCrossing and IsCrossingBarred to put and get the status of a level crossing
Fri, 24 Mar 2006 08:55:08 +0000 tron (svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
Sun, 19 Mar 2006 13:48:08 +0000 tron (svn r3981) More work for the rail accessing functions and enums
Sun, 19 Mar 2006 12:06:12 +0000 tron (svn r3979) Move GetRailFoundation() to rail_map.h and use it and friends to get information about rail tiles
Sat, 18 Mar 2006 14:35:54 +0000 bjarni (svn r3947) use TOGGLEBIT() instead of manual bit toggling in CmdReverseTrainDirection (pointed out by glx)
Sat, 18 Mar 2006 13:15:34 +0000 bjarni (svn r3945) cleaned the layout in CmdReverseTrainDirection a bit (made a bit messy in last commit)
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,}()
Thu, 16 Mar 2006 15:16:27 +0000 tron (svn r3907) Replace many bridge related direct map accesses with calls to shiny new functions and mark some strange constructs with XXX
Mon, 13 Mar 2006 20:12:35 +0000 tron (svn r3851) Rail depots only have an entrance at one side, therefore use UpdateSignalsOnSegment() instead of SetSignalsOnBothDir()
Sun, 12 Mar 2006 17:42:04 +0000 tron (svn r3832) Replace some magic numbers by (Diag)Direction enums
Sun, 12 Mar 2006 16:13:16 +0000 tron (svn r3831) Add and use GetRailDepotDirection()
Sun, 12 Mar 2006 15:04:03 +0000 tron (svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
Sun, 12 Mar 2006 12:19:25 +0000 tron (svn r3829) Reduce the use of _error_message by directly returning error codes instead of using this global variable
Thu, 09 Mar 2006 12:32:25 +0000 tron (svn r3803) Change the second parameter of UpdateSignalsOnSegment() from Direction to DiagDirection as that's what it really operates on
Wed, 08 Mar 2006 08:51:26 +0000 tron (svn r3789) Add an enum and function to handle DiagDirection changes
Wed, 08 Mar 2006 08:28:48 +0000 tron (svn r3787) Use DirToDiagDir() instead of >> 1
Wed, 08 Mar 2006 08:16:31 +0000 tron (svn r3786) More work for DirDiff
Wed, 08 Mar 2006 07:48:56 +0000 tron (svn r3784) Add a type and functions to handle direction changes
Wed, 08 Mar 2006 06:55:33 +0000 tron (svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends
Mon, 06 Mar 2006 20:55:24 +0000 tron (svn r3777) Add some functions to handle tunnels
Mon, 06 Mar 2006 20:28:28 +0000 tron (svn r3776) Replace many ints and magic numbers by Direction, DiagDirection and friends
Sat, 04 Mar 2006 11:15:44 +0000 tron (svn r3758) Remove the news validation callback. It is superseded by r3757.
Sat, 04 Mar 2006 11:01:35 +0000 tron (svn r3757) -Feature: Delete news items about vehicles, when they get stale
Mon, 13 Feb 2006 22:13:02 +0000 peter1138 (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 21:15:00 +0000 tron (svn r3597) Miscellaneous (I like that word) changes: Fix some indentation, add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff