From 4a14a586e2f457d38e9fede1a494478105a8acfd Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 13 Nov 2005 14:54:09 +0000 Subject: (svn r3173) Use the trinary operator and switch to improve readability Also align short cases nicely --- dock_gui.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'dock_gui.c') diff --git a/dock_gui.c b/dock_gui.c index 12d07606b..a1e14b726 100644 --- a/dock_gui.c +++ b/dock_gui.c @@ -230,11 +230,8 @@ static void BuildDockStationWndProc(Window *w, WindowEvent *e) return; w->click_state = (1<<3) << _station_show_coverage; DrawWindowWidgets(w); - if (_patches.modified_catchment) { - rad = CA_DOCK; - } else { - rad = 4; - } + + rad = (_patches.modified_catchment) ? CA_DOCK : 4; if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); else SetTileSelectBigSize(0, 0, 0, 0); -- cgit v1.2.3-54-g00ecf