train_cmd.c
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
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, 11 Feb 2006 09:17:16 +0000 peter1138 (svn r3587) - NewGRF: Rename Callback IDs to include their "class"
Fri, 10 Feb 2006 06:33:56 +0000 tron (svn r3585) Similar changes to the order handlers of the other vehicle types like r3584
Wed, 08 Feb 2006 19:06:46 +0000 peter1138 (svn r3579) v->u.rail.first_engine holds an engine type, not a vehicle index, so use INVALID_ENGINE.
Tue, 07 Feb 2006 18:55:06 +0000 peter1138 (svn r3570) - Explicitly update v->first in TrainConsistChanged() if necessary, as this is far faster than brute forcing it later.
Mon, 06 Feb 2006 09:18:04 +0000 tron (svn r3564) Several smaller changes:
Sun, 05 Feb 2006 19:46:20 +0000 peter1138 (svn r3557) - NewGRF: move callback enums to a new file as more than just engines will use them
Sat, 04 Feb 2006 18:25:07 +0000 bjarni (svn r3535) -Feature: [autoreplace] allow autoreplacing of train wagons
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 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
Sun, 29 Jan 2006 23:04:51 +0000 bjarni (svn r3484) -fix: fixed issue in last commit where loading savegame versions 18 and 19 didn't init the multiheaded engine pointers
Sun, 29 Jan 2006 18:57:26 +0000 Darkvater (svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron)
Wed, 25 Jan 2006 21:33:57 +0000 peter1138 (svn r3431) - Fix crash when moving vehicles around in a train depot under certain conditions.
Mon, 23 Jan 2006 21:05:05 +0000 peter1138 (svn r3422) - Fix: If an engine reaches the rear of a depot, make the engine turn around before it reaches the tile end (same as a normal end of line.) This fixes a bug whereby the engine could poke into the depot and crash with another engine just leaving it.
Wed, 18 Jan 2006 15:05:01 +0000 bjarni (svn r3403) -Codechange: [multiheaded engines] the references between the front and rear engines are no longer saved
Wed, 18 Jan 2006 14:12:26 +0000 bjarni (svn r3402) -Fix: [building/cloning] added a string telling if build failed due to not being able to build a vehicle. Triggered when cloning a retired design
Sun, 08 Jan 2006 16:56:41 +0000 peter1138 (svn r3392) Train depot fixes:
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.
Sat, 07 Jan 2006 10:57:32 +0000 truelight (svn r3381) -Fix: r3374 left one bug: allow moving around wagons in a 100 long train