From 47137cefb72d3b3d3bc6fdefc7a4b103429f6d46 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 23 Oct 2005 13:04:44 +0000 Subject: (svn r3078) Some more stuff, which piled up: - const, whitespace, indentation, bracing, GB/SB, pointless casts - use the trinary operator where appropriate - data types (uint[] -> AcceptedCargo, ...) - if cascade -> switch - if (ptr) -> if (ptr != NULL) - DeMorgan's Law - Fix some comments - 0 -> '\0', change magic numbers to symbolic constants --- settings_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings_gui.c') diff --git a/settings_gui.c b/settings_gui.c index cc7a5b5f9..223517890 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -1219,7 +1219,7 @@ static void NewgrfWndProc(Window *w, WindowEvent *e) case 3: { // select a grf file int y = (e->click.pt.y - NEWGRF_WND_PROC_OFFSET_TOP_WIDGET) / NEWGRF_WND_PROC_ROWSIZE; - if (y >= w->vscroll.cap) { return;} // click out of bounds + if (y >= w->vscroll.cap) return; // click out of bounds y += w->vscroll.pos; -- cgit v1.2.3-70-g09d2