diff options
author | tron <tron@openttd.org> | 2005-11-13 14:54:09 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-13 14:54:09 +0000 |
commit | 4a14a586e2f457d38e9fede1a494478105a8acfd (patch) | |
tree | 0bcf189f35802c7769cd23e20ed58a18b59d9b2e /dock_gui.c | |
parent | ee15e3de13643b2d09abcc5424bf8e2d916cff75 (diff) | |
download | openttd-4a14a586e2f457d38e9fede1a494478105a8acfd.tar.xz |
(svn r3173) Use the trinary operator and switch to improve readability
Also align short cases nicely
Diffstat (limited to 'dock_gui.c')
-rw-r--r-- | dock_gui.c | 7 |
1 files changed, 2 insertions, 5 deletions
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); |