summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2017-03-24 19:25:01 +0000
committerpeter1138 <peter1138@openttd.org>2017-03-24 19:25:01 +0000
commit65d77ff317facdd4f192eead8b8ad5357803b767 (patch)
tree74b605e7735640cca2f84ae907d7c747aba58a35
parentd934ef9b003c3e084ab77acec554f4870c1a3727 (diff)
downloadopenttd-65d77ff317facdd4f192eead8b8ad5357803b767.tar.xz
(svn r27826) -Fix (r27825): Wrong code style
-rw-r--r--src/window.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 272361285..8378f60f7 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -773,12 +773,9 @@ static void DispatchRightClickEvent(Window *w, int x, int y)
}
/* Right-click close is enabled and there is a closebox */
- if (_settings_client.gui.right_mouse_wnd_close && w->nested_root->GetWidgetOfType(WWT_CLOSEBOX))
- {
+ if (_settings_client.gui.right_mouse_wnd_close && w->nested_root->GetWidgetOfType(WWT_CLOSEBOX)) {
delete w;
- }
- else if (_settings_client.gui.hover_delay_ms == 0 && wid->tool_tip != 0)
- {
+ } else if (_settings_client.gui.hover_delay_ms == 0 && wid->tool_tip != 0) {
GuiShowTooltips(w, wid->tool_tip, 0, NULL, TCC_RIGHT_CLICK);
}
}