summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-15 11:06:54 +0000
committertron <tron@openttd.org>2005-10-15 11:06:54 +0000
commitd5042d4ab2739150a311f032a7df63b45ef65928 (patch)
treeb29021fa7ba6b899a521aa0856f9ea9ba5047dbe /window.c
parentab41ccb23c92b30fdbdfe793e31ccc4bd5df6661 (diff)
downloadopenttd-d5042d4ab2739150a311f032a7df63b45ef65928.tar.xz
(svn r3046) Replace some numbers with sprite names and fix a typo in the sprite list
Diffstat (limited to 'window.c')
-rw-r--r--window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/window.c b/window.c
index 349f28d6c..eeb3d88bb 100644
--- a/window.c
+++ b/window.c
@@ -11,6 +11,7 @@
#include "viewport.h"
#include "console.h"
#include "variables.h"
+#include "table/sprites.h"
// delta between mouse cursor and upper left corner of dragged window
static Point _drag_delta;
@@ -1430,7 +1431,8 @@ static void MouseLoop(int click, int mousewheel)
DEBUG(misc, 2) ("cursor: 0x%X (%d)", _cursor.sprite, _cursor.sprite);
if (_thd.place_mode != 0 &&
// query button and place sign button work in pause mode
- !(_cursor.sprite == 0x2CF || _cursor.sprite == 0x2D2) &&
+ _cursor.sprite != SPR_CURSOR_QUERY &&
+ _cursor.sprite != SPR_CURSOR_SIGN &&
_pause != 0 &&
!_cheats.build_in_pause.value)
return;