forked from mirror/OpenTTD
(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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user