rail_cmd.c
Tue, 21 Mar 2006 21:11:41 +0000 peter1138 (svn r3998) - Fix: When removing rail track from a while where only X and Y (/ and \) pieces exist, explicitly update signals in both directions.
Mon, 20 Mar 2006 16:43:48 +0000 celestar (svn r3992) -Fix: Rewrote the code to determine whether a rail-tile can be terraformed.
Sun, 19 Mar 2006 19:56:57 +0000 tron (svn r3988) Remove the info about valid rails on shore tiles. It's the same as for any other sloped tile
Sun, 19 Mar 2006 19:33:19 +0000 tron (svn r3986) Add [GS]etCrossingRoadOwner
Sun, 19 Mar 2006 17:52:02 +0000 tron (svn r3985) Make CmdBuildSingleRail() a bit more comprehensible
Sun, 19 Mar 2006 16:57:48 +0000 tron (svn r3983) Use existing functions to access tree and road info
Sun, 19 Mar 2006 14:43:23 +0000 tron (svn r3982) Fix last commit. I got confused by some strange test, which did nothing
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
Sun, 19 Mar 2006 06:50:19 +0000 tron (svn r3976) Fix typo in r3946
Sat, 18 Mar 2006 13:20:50 +0000 tron (svn r3946) Add short hand names for common track combinations
Sat, 18 Mar 2006 11:38:43 +0000 tron (svn r3942) GetRailType() != GetRailTileType(), fix r3941
Sat, 18 Mar 2006 09:06:07 +0000 tron (svn r3941) Get rid of RAIL_TYPE_SPECIAL
Fri, 17 Mar 2006 10:10:31 +0000 tron (svn r3916) Get/Set the rail type by [GS]etRailType{Crossing,OnBridge,}()
Fri, 17 Mar 2006 06:26:37 +0000 tron (svn r3912) Move the signal type enum and GetSignalType() to rail_map.h; also add SetSignalType() and use the functions
Thu, 16 Mar 2006 21:44:58 +0000 tron (svn r3911) Add functions to retrieve/set the signal variant (electric/semaphore)
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
Wed, 15 Mar 2006 21:27:19 +0000 Darkvater (svn r3893) - Fix: Properly set back the owner of a crossing/road-under bridge after removing it. For crossings we can always use .m2 because it is already 0 when not owned by a town.
Tue, 14 Mar 2006 23:28:04 +0000 Darkvater (svn r3876) - Fix: We know on a level crossing's town owner of the road (if any); it is in m2 so properly set it back when the crossing's removed.
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()
Mon, 13 Mar 2006 12:55:20 +0000 tron (svn r3846) Add functions to set the type of stuff (clear, water, rail, road) under bridges
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
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 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
Sun, 05 Mar 2006 10:19:33 +0000 tron (svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme
Sat, 04 Mar 2006 13:52:52 +0000 tron (svn r3760) Replace some magic numbers for checking for a suitable slope for a level crossing by some less magic numbers. Quite similar to r3699, though this time for placing the rails
Wed, 01 Mar 2006 12:31:39 +0000 tron (svn r3698) Add GetCrossingRailBits() and ComplementRoadBits(). Simplify the code by using them
Wed, 01 Mar 2006 09:40:34 +0000 tron (svn r3697) Rename DIAG1/DIAG2 to X resp. Y as this conveys a bit better in which direction a pieces of rail goes
Wed, 01 Mar 2006 08:56:38 +0000 tron (svn r3696) Add functions to turn a tile into a normal rail tile/depot/waypoint. This is just a tiny step, the rail code needs way more love and caring
Tue, 28 Feb 2006 21:19:50 +0000 tron (svn r3689) Add functions to turn a tile into either a normal road tile, a level crossing or a road depot
Thu, 23 Feb 2006 12:24:19 +0000 tron (svn r3660) Convert further road bits and type references to the functions/enums
Thu, 23 Feb 2006 08:20:28 +0000 tron (svn r3658) Add functions and symbolic names to retrieve road tile types and road pieces
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
Mon, 06 Feb 2006 09:18:04 +0000 tron (svn r3564) Several smaller changes:
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
Mon, 30 Jan 2006 17:18:45 +0000 tron (svn r3490) -Fix: A bunch (10) of off-by-one errors when checking if a TileIndex points to a tile on the map
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)
Sun, 29 Jan 2006 10:50:27 +0000 Darkvater (svn r3466) - Codechange: Some changes to increase readability of signals code.
Sat, 07 Jan 2006 17:26:37 +0000 tron (svn r3389) -Fix: No fence was placed when placing fences and the neighbouring tile is a rail configuration which permits a fence but has a signal
Sat, 07 Jan 2006 16:30:49 +0000 tron (svn r3387) Restructure the code, which places fences along railroad tracks.
Fri, 06 Jan 2006 00:08:00 +0000 matthijs (svn r3369) - Codechange: Replace tables _signals_table, _signals_table_other and _signals_table_both by the equivalent calls to rail.h functions.
Thu, 05 Jan 2006 12:40:50 +0000 tron (svn r3365) Staticise 36 functions
Wed, 14 Dec 2005 06:28:48 +0000 tron (svn r3298) Remove unused and write-only variables
Wed, 14 Dec 2005 06:20:23 +0000 tron (svn r3297) Staticise
Sat, 10 Dec 2005 12:05:39 +0000 peter1138 (svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()
Wed, 16 Nov 2005 22:20:15 +0000 peter1138 (svn r3212) - Waypoints/Depots: Store waypoint index in m2 for waypoints. This moves the ground type bits from m2 to m4 for waypoints and depots (leaving room for depot index in m2 in future), and moves the custom graphics ID to the waypoint struct.
Wed, 16 Nov 2005 14:41:01 +0000 truelight (svn r3210) -Codechange: use IsRailWaypoint where possible (instead of magicnumbers)
Wed, 16 Nov 2005 14:30:24 +0000 peter1138 (svn r3209) In TileLoop_Track(), use names based on function rather than their place in the map array.
Tue, 15 Nov 2005 09:47:25 +0000 tron (svn r3187) Simplify overly complicated ifs, especially if (foo) return false; else return true; is confusing
Tue, 15 Nov 2005 08:49:46 +0000 tron (svn r3184) GB/SB
Mon, 14 Nov 2005 19:48:04 +0000 tron (svn r3181) -Bracing
Sun, 13 Nov 2005 14:54:09 +0000 tron (svn r3173) Use the trinary operator and switch to improve readability
Sat, 12 Nov 2005 00:29:13 +0000 peter1138 (svn r3168) - NewGRF: Fix "typo" in waypoint drawer :/
Fri, 11 Nov 2005 20:34:16 +0000 peter1138 (svn r3166) Constify read-only accesses of custom stations
Sat, 05 Nov 2005 18:21:28 +0000 peter1138 (svn r3141) Replace incorrect railtype bitmask in CmdRailTrackHelper with appropriate GB()
Sun, 23 Oct 2005 13:04:44 +0000 tron (svn r3078) Some more stuff, which piled up: