Check track visibility in advance in DrawTrainDepotSprite
commit99b405675f283e8a966f2f340d1f17adcc5b8d04
authorcirdan <cirdansw@gmail.com>
Sun, 28 Jan 2018 09:02:30 +0000 (28 10:02 +0100)
committercirdan <cirdansw@gmail.com>
Sun, 28 Jan 2018 09:02:30 +0000 (28 10:02 +0100)
treea5d584c3067ac68290b62ff751a6f4fef6548229
parent7d737aff43064413df3f482a2aab4c5fd3b61b6c
Check track visibility in advance in DrawTrainDepotSprite

Wrap drawing of the overlay track in DrawTrainDepotSprite in a
conditional that checks if the track can be seen (the depot faces
south), instead of computing the overlay sprite to use first and
then possibly discarding it.
src/misctile_cmd.cpp