summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-11-20 15:44:24 +0000
committeralberth <alberth@openttd.org>2010-11-20 15:44:24 +0000
commitab50f74d7fa3c1c96de54012ccc197c4800901c8 (patch)
treefbee322b7dcec81c6a98a1ee923984d902e834f9 /src/station.cpp
parent38dc34828ea679e4952f9f30361382e29d2f2e06 (diff)
downloadopenttd-ab50f74d7fa3c1c96de54012ccc197c4800901c8.tar.xz
(svn r21273) -Codechange: Return values should start at the same line.
Diffstat (limited to 'src/station.cpp')
-rw-r--r--src/station.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/station.cpp b/src/station.cpp
index 956dde1ab..6ad19475f 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -363,11 +363,8 @@ void StationRect::MakeEmpty()
*/
bool StationRect::PtInExtendedRect(int x, int y, int distance) const
{
- return
- this->left - distance <= x &&
- x <= this->right + distance &&
- this->top - distance <= y &&
- y <= this->bottom + distance;
+ return this->left - distance <= x && x <= this->right + distance &&
+ this->top - distance <= y && y <= this->bottom + distance;
}
bool StationRect::IsEmpty() const