diff options
author | peter1138 <peter1138@openttd.org> | 2005-11-12 08:51:46 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-11-12 08:51:46 +0000 |
commit | b3056bc799f51c631eed2521032071a79a4229c3 (patch) | |
tree | 2791c360870a1bc3dc28549679be38e0edd891a7 /rail_gui.c | |
parent | a7fe1495cd617aa18b2e0cba929a54c2c4e4c2a6 (diff) | |
download | openttd-b3056bc799f51c631eed2521032071a79a4229c3.tar.xz |
(svn r3169) Little bit of coding style fixing, and change from value to lengthof()
Diffstat (limited to 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rail_gui.c b/rail_gui.c index 668e797ff..e105c6679 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -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; } |