diff options
author | Darkvater <darkvater@openttd.org> | 2005-06-06 13:47:06 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-06-06 13:47:06 +0000 |
commit | 5fed47964e28c49f7af879700d013f2897341f4e (patch) | |
tree | ac935893726bc7005c7c5ad7d411354e5b8cc0f9 /misc_gui.c | |
parent | 71c2a573e193b0e4530cee49e02148320c84c612 (diff) | |
download | openttd-5fed47964e28c49f7af879700d013f2897341f4e.tar.xz |
(svn r2420) - Codechange: magic number elminitation of cursorsprites.
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/misc_gui.c b/misc_gui.c index b737ee3c4..61ffc8377 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -161,11 +161,11 @@ static void Place_LandInfo(uint tile) void PlaceLandBlockInfo(void) { - if (_cursor.sprite == 0x2CF) { + if (_cursor.sprite == SPR_CURSOR_QUERY) { ResetObjectToPlace(); } else { _place_proc = Place_LandInfo; - SetObjectToPlace(0x2CF, 1, 1, 0); + SetObjectToPlace(SPR_CURSOR_QUERY, 1, 1, 0); } } @@ -317,12 +317,12 @@ static void BuildTreesWndProc(Window *w, WindowEvent *e) if ( (uint)(wid-3) >= (uint)WP(w,tree_d).count) return; - if (HandlePlacePushButton(w, wid, 0x7DA, 1, NULL)) + if (HandlePlacePushButton(w, wid, SPR_CURSOR_TREE, 1, NULL)) _tree_to_plant = WP(w,tree_d).base + wid - 3; break; case 15: // tree of random type. - if (HandlePlacePushButton(w, 15, 0x7DA, 1, NULL)) + if (HandlePlacePushButton(w, 15, SPR_CURSOR_TREE, 1, NULL)) _tree_to_plant = -1; break; @@ -1389,7 +1389,7 @@ void ShowSaveLoadDialog(int mode) { Window *w; - SetObjectToPlace(1, 0, 0, 0); + SetObjectToPlace(SPR_CURSOR_ZZZ, 0, 0, 0); DeleteWindowById(WC_QUERY_STRING, 0); DeleteWindowById(WC_SAVELOAD, 0); |