diff options
author | dominik <dominik@openttd.org> | 2004-11-14 22:10:08 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-11-14 22:10:08 +0000 |
commit | fb64b4e499ceb631f6e9109d18422e2ae604c204 (patch) | |
tree | d6896398c02266f1cd7239e6ea3c40dfde2ef609 /rail_gui.c | |
parent | 051e094921f208f48f3239622f96078c528ef734 (diff) | |
download | openttd-fb64b4e499ceb631f6e9109d18422e2ae604c204.tar.xz |
(svn r612) [newgrf] Fix: custom waypoints on monorail/maglev are displayed correctly
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rail_gui.c b/rail_gui.c index 4ffc60c33..6aa615e65 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -1065,11 +1065,11 @@ static void BuildWaypointWndProc(Window *w, WindowEvent *e) DrawWindowWidgets(w); r = 4*w->hscroll.pos; - if(r+0<=_waypoint_count) DrawWaypointSprite(2, 25, r + 0); - if(r+1<=_waypoint_count) DrawWaypointSprite(70, 25, r + 1); - if(r+2<=_waypoint_count) DrawWaypointSprite(138, 25, r + 2); - if(r+3<=_waypoint_count) DrawWaypointSprite(206, 25, r + 3); - if(r+4<=_waypoint_count) DrawWaypointSprite(274, 25, r + 4); + if(r+0<=_waypoint_count) DrawWaypointSprite(2, 25, r + 0, _cur_railtype); + if(r+1<=_waypoint_count) DrawWaypointSprite(70, 25, r + 1, _cur_railtype); + if(r+2<=_waypoint_count) DrawWaypointSprite(138, 25, r + 2, _cur_railtype); + if(r+3<=_waypoint_count) DrawWaypointSprite(206, 25, r + 3, _cur_railtype); + if(r+4<=_waypoint_count) DrawWaypointSprite(274, 25, r + 4, _cur_railtype); break; } case WE_CLICK: { |