train_cmd.c
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
Fri, 06 Jan 2006 22:49:00 +0000 peter1138 (svn r3378) - NewGRF Fix: Use order status to determine whether a vehicle is loading instead
Fri, 06 Jan 2006 21:10:58 +0000 truelight (svn r3374) -Fix: [ FS#36 ] Don't allow trains to get bigger than 100 via drag and drop
Fri, 06 Jan 2006 18:26:02 +0000 truelight (svn r3373) -Fix: don't link a wagon to itself, which resulted in a wagon disapearing, and a depot which was unable to remove
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, 05 Jan 2006 12:40:50 +0000 tron (svn r3365) Staticise 36 functions
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, 28 Dec 2005 22:29:59 +0000 peter1138 (svn r3352) - NewGRF: Move initialization of vehicle random_bits to DC_EXEC blocks to allow use of Random() instead of InteractiveRandom(), which will alleviate some possible network desyncs.
Wed, 14 Dec 2005 09:15:06 +0000 peter1138 (svn r3303) Change #if PF_BENCHMARK to #ifdef PF_BENCHMARK
Wed, 14 Dec 2005 06:20:23 +0000 tron (svn r3297) Staticise
Tue, 29 Nov 2005 22:29:59 +0000 peter1138 (svn r3248) - Codechange: Change interface of CanRefitTo() to supply the engine type directly instead of getting it from a vehicle. This allows the function to be used before vehicles are involved.
Sat, 19 Nov 2005 00:10:20 +0000 bjarni (svn r3219) -Codechange: removed the now obsolite code in the build train command to make half multiheaded engines
Fri, 18 Nov 2005 23:41:03 +0000 bjarni (svn r3218) -Feature: Multiheaded train engines will now stay in the same train