diff options
author | tron <tron@openttd.org> | 2005-10-15 11:06:54 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-15 11:06:54 +0000 |
commit | d5042d4ab2739150a311f032a7df63b45ef65928 (patch) | |
tree | b29021fa7ba6b899a521aa0856f9ea9ba5047dbe /window.c | |
parent | ab41ccb23c92b30fdbdfe793e31ccc4bd5df6661 (diff) | |
download | openttd-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |