summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-08-13 10:43:11 +0000
committerfrosch <frosch@openttd.org>2011-08-13 10:43:11 +0000
commit92e701c6ed075167d272137647f677d337759dde (patch)
tree105a26e1c2259d59c0d9626d356f6672ba078789 /src
parent6bb33acc0d86e1fdd6c30b1fa9b4308a908059ff (diff)
downloadopenttd-92e701c6ed075167d272137647f677d337759dde.tar.xz
(svn r22739) -Fix: The measurement tooltip is supposed to be hidden when not dragging an area.
Diffstat (limited to 'src')
-rw-r--r--src/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index dcfe4cf01..e0996c786 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -2786,7 +2786,7 @@ calc_heightdiff_single_direction:;
}
}
- if (t0 != 1 || t1 != 1) {
+ if (dx != 1 || dy != 1) {
int heightdiff = CalcHeightdiff(style, 0, t0, t1);
params[index++] = dx;