summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-08-16 18:46:54 +0000
committerdarkvater <darkvater@openttd.org>2004-08-16 18:46:54 +0000
commit255a1ad941f4f852b65257cf179294ee4f5acdd4 (patch)
tree78b7848d85aeb8e0b2fcfea40a576585f834d11f /window.c
parent4587ede35d8ada9f15c1a8ba5e2362cc870c0073 (diff)
downloadopenttd-255a1ad941f4f852b65257cf179294ee4f5acdd4.tar.xz
(svn r68) -Fix: [1009621] build in pause is now a cheat instead of a patch (truesatan)
-Fix: Placing/editing signs signs is possible in paused mode
Diffstat (limited to 'window.c')
-rw-r--r--window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/window.c b/window.c
index e01066bf4..0a8539603 100644
--- a/window.c
+++ b/window.c
@@ -1013,10 +1013,12 @@ void MouseLoop()
}
if (click == 1) {
+ DEBUG(misc, 1) ("cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite);
if (_thd.place_mode != 0 &&
- _cursor.sprite != 0x2CF &&
+ // query button and place sign button work in pause mode
+ !(_cursor.sprite == 0x2CF || _cursor.sprite == 0x2D2) &&
_pause != 0 &&
- !_patches.build_in_pause)
+ !_cheats.build_in_pause.value)
return;
if (_thd.place_mode == 0) {