summaryrefslogtreecommitdiff
path: root/src/rail.cpp
AgeCommit message (Collapse)Author
2019-12-23Fix: Setting the default railtype to 'first/last available' did not work ↵frosch
with NewGRF defined railtypes.
2019-12-21Codechange: Replace FOR_ALL_ENGINES with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-03-31Change: Shorten engine rail type drop down in autoreplace window. (#7448)PeterN
In the autoreplace window, the rail type drop down is for choosing engines of the given time. Many rail types do not have engines specifically designed for them, and are merely compatible with other rail types. This list is thus unwieldy and many options have no engines available. As this drop down is for choosing _engine_ rail type rather than compatible rail types, we can list just the rail types explicitly listed by engines.
2019-03-26Codechange: Replaced SmallVector::Contains() with std::find() patternHenry Wilson
2019-02-06Add #5006: Flag to hide rail type from construction.Peter Nelson
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2017-03-19(svn r27808) -Codechange: Adjust the size of _track_crosses_trackdirspeter1138
_track_crosses_trackdirs is indexed by a Track, not a Trackdir, so adjust its size accordingly. (cirdan)
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-01-05(svn r23758) -Feature: [NewGRF] Alternate rail type label list.michi_cc
2011-01-18(svn r21846) -Codechange: move documentation towards the code to make it ↵rubidium
more likely to be updated [o-s].
2011-01-18(svn r21842) -Feature [FS#4393]: [NewGRF] Introduction dates/required types ↵rubidium
for rail types; e.g. introduce a particular rail type in 1960 (or when a vehicle using it is introduced), but also allow limiting its introduction to only happen when the required railtypes are available
2011-01-18(svn r21841) -Feature: [NewGRF] Allow to define other railtypes that should ↵rubidium
be introduced if a particular rail type is introduced, e.g. to make sure slow rail is introduced when fast rail gets introduced
2010-04-17(svn r19654) -Codechange: Use Extract<> in more places.frosch
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-07-24(svn r16938) -Codechange: introduce helper function to tell whether a tile ↵rubidium
is either a rail station or rail waypoint tile
2009-07-22(svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions ↵rubidium
all over the place when using the more advanced station types. -Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
2009-05-16(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)smatz
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-02-08(svn r15417) -Codechange: Add default rail type labels and support for ↵peter1138
per-GRF translation table.
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-13(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEARsmatz
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-08-24(svn r14160) -Codechange: Move _railtype_cost_multipliers into the rail type ↵peter1138
information struct.
2008-05-29(svn r13325) -Codechange: split the client-side only settings from the ↵rubidium
settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-25(svn r13255) -Codechange: move _opt to _settings.rubidium
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-04-29(svn r12924) -Feature: Introducing the so called 'engine pool' which ↵peter1138
primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
2008-04-29(svn r12917) -Codechange: standardise variable names called with ↵peter1138
FOR_ALL_ENGINEIDS_OF_TYPE
2008-03-31(svn r12490) -Codechange: rename engine.h to engine_func.h and remove ↵rubidium
unneeded inclusions of engine.h and/or replace them with engine_type.h.
2008-02-28(svn r12313) -Fix: YAPF and NTP did not apply penalty for uphill tracks on ↵frosch
steep slopes.
2008-01-23(svn r11957) -Codechange [FS#1678]: Minor simplification and optimisation ↵peter1138
when checking for available road/rail types (bilbo)
2008-01-12(svn r11818) -Codechange: split player.h into smaller pieces.rubidium
2008-01-09(svn r11801) -Codechange: remove some unneeded includes from some header files.rubidium
2008-01-09(svn r11800) -Codechange: move some functions to a more logical location + ↵rubidium
some type safety.
2007-12-30(svn r11723) -Feature: add initial support for Intel C Compiler on linuxskidd13
-Codechange: silence a few warnings of ICC
2007-12-16(svn r11649) -Codechange: some code can be simplified thanks to changes in ↵smatz
r11642
2007-12-16(svn r11644) -Codechange: merge some functions from tunnel_map.h and ↵smatz
bridge_map.h into tunnelbridge_map.h
2007-10-14(svn r11265) -Feature: Make more advanced rail types more expensive to build.maedhros
2007-10-09(svn r11237) -Codechange: reduce code duplication between ↵rubidium
GetRailFoundation() and CheckRailSlope(). Patch by frosch.
2007-07-29(svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word ↵rubidium
"road" everywhere except in the tile type.
2007-05-30(svn r9988) -Codechange: remove the last direct map accesses, except the ↵rubidium
ones needed for the savegame saving/loading mechanisms.
2007-04-18(svn r9672) -Cleanup: lots of coding style fixes around operands.rubidium
2007-04-04(svn r9556) -Documentation: doxygen and comment-style changes. 'R', 'S'.. ↵belugas
The end of the preliminary work is near
2007-03-28(svn r9523) -Cleanup: doxygen changes. Time to take care of "R"belugas
2007-02-27(svn r8935) -Codechange: unification of track type between road and rail ↵rubidium
tiles, unification of ground type between normal rail tiles and depots/waypoints and removing the need for RailTileSubType.
2007-02-25(svn r8899) -Fixtron
Remove the unused second parameter from GetTileRailType()