summaryrefslogtreecommitdiff
path: root/src/transparency_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-07-24 10:14:39 +0000
committeralberth <alberth@openttd.org>2010-07-24 10:14:39 +0000
commitbe6c0584240caf420b2475a0be036391e842e8af (patch)
tree6111751cf5526e1eb41176782d84766c4e9ed185 /src/transparency_gui.cpp
parent645b6ce77345867fa96861843197481131566c46 (diff)
downloadopenttd-be6c0584240caf420b2475a0be036391e842e8af.tar.xz
(svn r20211) -Codechange: Indented code should have curly braces around it.
Diffstat (limited to 'src/transparency_gui.cpp')
-rw-r--r--src/transparency_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transparency_gui.cpp b/src/transparency_gui.cpp
index 18d11593d..5d021f965 100644
--- a/src/transparency_gui.cpp
+++ b/src/transparency_gui.cpp
@@ -100,8 +100,9 @@ public:
uint i;
for (i = TTW_WIDGET_BEGIN; i < TTW_WIDGET_END; i++) {
const NWidgetBase *nwid = this->GetWidget<NWidgetBase>(i);
- if (IsInsideBS(pt.x, nwid->pos_x, nwid->current_x))
+ if (IsInsideBS(pt.x, nwid->pos_x, nwid->current_x)) {
break;
+ }
}
if (i == TTW_WIDGET_LOADING || i == TTW_WIDGET_END) return;