(svn r3169) Little bit of coding style fixing, and change from value to lengthof()

This commit is contained in:
peter1138
2005-11-12 08:51:46 +00:00
parent a7fe1495cd
commit b3056bc799
2 changed files with 6 additions and 6 deletions

View File

@@ -833,9 +833,10 @@ static void BuildWaypointWndProc(Window *w, WindowEvent *e)
w->click_state = (1 << 3) << (_cur_waypoint_type - w->hscroll.pos);
DrawWindowWidgets(w);
for (i = 0; i < 5; i++)
if(w->hscroll.pos + i < _waypoint_count)
for (i = 0; i < 5; i++) {
if (w->hscroll.pos + i < _waypoint_count)
DrawWaypointSprite(2 + i * 68, 25, w->hscroll.pos + i, _cur_railtype);
}
break;
}