summaryrefslogtreecommitdiff
path: root/src/elrail.cpp
AgeCommit message (Collapse)Author
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2017-03-20(svn r27812) -Fix: Road tunnel/bridge heads have no trackbits wrt catenary ↵peter1138
drawing Road tunnels and bridges do not have any rail, so do not treat them as if they had when drawing a catenary. (cirdan)
2016-11-05(svn r27676) -Codechange: Rename catenary functions, so that they refer ↵frosch
unambiguously to either RoadCatenary or RailCatenary.
2014-09-21(svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the ↵rubidium
data is now always accessible
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
2014-02-07(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity ↵frosch
when they are not supposed to, and truncate cargo appropiately if they are allowed to.
2013-06-28(svn r25505) -Fix [FS#5563]: use proper doxygen style link to imagesrubidium
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-21(svn r24837) -Fix: Don't consider blocked rail station tiles that display ↵michi_cc
wires as non-reachable for masking out unnecessary catenary wires.
2012-12-21(svn r24836) -Feature(ette): Improve pylon placement around station tiles ↵michi_cc
that display neither pylons nor catenary.
2012-07-15(svn r24403) -Fix: Draw wires under low bridges if the bridge is ↵frosch
transparent, not if the wire is transparent.
2012-07-15(svn r24402) -Fix [FS#5243]: Station properties 11 and 14 were combined ↵frosch
incorrectly.
2011-11-04(svn r23110) -Codechange: let the flying altitude return ints are wellrubidium
2011-11-04(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z ↵rubidium
related variables
2011-11-04(svn r23106) -Codechange: pass int* to GetTileSlope and friendsrubidium
2011-11-04(svn r23102) -Codechange: remove the remaining pointless multiplications by ↵rubidium
TILE_HEIGHT
2011-11-04(svn r23097) -Codechange: remove pointless multiplications by TILE_HEIGHT ↵rubidium
from the bridge code
2011-11-04(svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and ↵rubidium
use it
2011-11-04(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ ↵rubidium
functions if they return the Z in pixels (like TilePixelHeight)
2011-05-08(svn r22437) -Fix: Catenary was drawn incorrectly next to level crossings ↵frosch
with foundations. (same as r3935, but for level crossings)
2011-05-02(svn r22411) -Document: another bunch of bitsrubidium
2011-01-18(svn r21845) -Codechange: move documentation towards the code to make it ↵rubidium
more likely to be updates [d-m].
2010-10-30(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)alberth
2010-08-26(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to ↵rubidium
some headers
2010-08-09(svn r20424) -Fix: Rename members of TileContext (TC_NORMAL conflicted with ↵terkhen
an existing define on MinGW).
2010-08-09(svn r20423) -Change [FS#3947]: Make snow on bridges depend on bridgeheight.frosch
2010-08-09(svn r20422) -Change [FS#3947]: Resolve tracksprites on bridges always using ↵frosch
the southern bridgehead as tile.
2010-08-09(svn r20420) -Codechange: Add TileContext enum instead of using a bool.frosch
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-07-13(svn r20137) -Fix [FS#3945]: desync due to (temporary) wrong railtype; when ↵rubidium
loading a savegame the railtype of some (high ID) trains could be wrong. After loading the vehicle data in the trains are updated, but after that the "electrification" checks are done which can change the "global" vehicle data. However, this update is not propagated to the vehicles until the consist is updated, e.g. turning around and going to a depot. This makes some of the trains of a just joined client run as non-electrified trains which can cause it to take a wrong path or to not (randomly) show the electric sparks.
2010-07-12(svn r20132) -Fix [FS#3944](r20126): There can also be halftile foundations ↵frosch
on slopes with opposite corners raised.
2010-07-11(svn r20126) -Fix [FS#3883]: Make railtype Terrain Type variable aware of ↵frosch
RAIL_GROUND_HALF_SNOW. That is, resolve the sprites for upper and lower part of the foundation independently.
2010-05-11(svn r19792) -Change: use the typed FOR_EACH_SET_BIT for Tracks (adf88)rubidium
2010-02-07(svn r19056) -Add: [NewGRF] Action 3/2/1 (i.e. new graphics) support for ↵peter1138
rail types. (To be documented...)
2010-01-15(svn r18812) -Codechange: make some functions in train.h functions of Train.rubidium
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
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-07-01(svn r16717) -Codechange: make IsFrontEngine() member of Trainsmatz
2009-05-26(svn r16441) -Codechange: new class SpecializedVehicle used as superclass ↵smatz
for all vehicle types
2009-05-22(svn r16392) -Codechange: move some variables (the ones that aren't caches) ↵rubidium
from VehicleRail to Train
2009-05-22(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.rubidium
2009-05-18(svn r16350) -Codechange: make some 'rail track is present' checks more 'secure'smatz
2009-05-18(svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), ↵smatz
introduce shiny new IsPlainRailTile()
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-03-14(svn r15711) -Codechange: lots of whitespace cleanup/fixesrubidium
2009-02-05(svn r15348) -Fix (r15347): Preferred pylon position is dependant on the ↵michi_cc
masked wires as well.
2009-02-05(svn r15347) -Feature [FS#1761]: Don't draw superfluous catenary wires ↵michi_cc
(based on a patch by Eddi).