summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-10 20:53:23 +0000
committerrubidium <rubidium@openttd.org>2010-02-10 20:53:23 +0000
commit249acc9e4f22d6cc503db857518d0f95a4edec07 (patch)
tree6ab05198247bcb5c49b6cf67fa0f740c84e76799 /src/window.cpp
parentaab7768a3ea9a7e4a1c7001804febe41980dea11 (diff)
downloadopenttd-249acc9e4f22d6cc503db857518d0f95a4edec07.tar.xz
(svn r19089) -Codechange: some minor coding style
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index d0bb55800..dbe971c62 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1038,9 +1038,9 @@ static bool IsGoodAutoPlace2(int left, int top, int width, int height, Point &po
/* Left part of the rectangle may be at most 1/4 off-screen,
* right part of the rectangle may be at most 1/2 off-screen
*/
- if (left < -(width>>2) || left > _screen.width - (width>>1)) return false;
+ if (left < -(width >> 2) || left > _screen.width - (width >> 1)) return false;
/* Bottom part of the rectangle may be at most 1/4 off-screen */
- if (top < 22 || top > _screen.height - (height>>2)) return false;
+ if (top < 22 || top > _screen.height - (height >> 2)) return false;
/* Make sure it is not obscured by any window. */
const Window *w;