From fb64b4e499ceb631f6e9109d18422e2ae604c204 Mon Sep 17 00:00:00 2001 From: dominik Date: Sun, 14 Nov 2004 22:10:08 +0000 Subject: (svn r612) [newgrf] Fix: custom waypoints on monorail/maglev are displayed correctly --- rail_gui.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rail_gui.c') 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: { -- cgit v1.2.3-54-g00ecf