Add overloaded functions GetWireBase and GetPylonBase
commit9302cb4a57c86e1d4f72b56624a8c1bdf1cc49d3
authorcirdan <cirdansw@gmail.com>
Wed, 18 Jan 2017 17:33:56 +0000 (18 18:33 +0100)
committercirdan <cirdansw@gmail.com>
Wed, 18 Jan 2017 17:33:56 +0000 (18 18:33 +0100)
tree85106c55ade1cfa555939d10444df8f7cdefab92
parentb546f1310ae53b513a9213f06b67d451b6300cf4
Add overloaded functions GetWireBase and GetPylonBase

Add overloaded functions GetWireBase and GetPylonBase that work
on a RailtypeInfo instead of on a tile and track, and use them in
DrawCatenaryOnBridge. This fixes a bug that could cause custom
pylon/wire sprites for a railtype to be ignored on a bridge if the
bridge head had two different railtypes.
src/elrail.cpp