summaryrefslogtreecommitdiff
path: root/industry_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-06-06 13:47:06 +0000
committerDarkvater <darkvater@openttd.org>2005-06-06 13:47:06 +0000
commit5fed47964e28c49f7af879700d013f2897341f4e (patch)
treeac935893726bc7005c7c5ad7d411354e5b8cc0f9 /industry_gui.c
parent71c2a573e193b0e4530cee49e02148320c84c612 (diff)
downloadopenttd-5fed47964e28c49f7af879700d013f2897341f4e.tar.xz
(svn r2420) - Codechange: magic number elminitation of cursorsprites.
Diffstat (limited to 'industry_gui.c')
-rw-r--r--industry_gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/industry_gui.c b/industry_gui.c
index 4776ea97f..4aa833188 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -3,6 +3,7 @@
#include "debug.h"
#include "strings.h"
#include "table/strings.h"
+#include "table/sprites.h"
#include "map.h"
#include "gui.h"
#include "window.h"
@@ -35,7 +36,7 @@ static void BuildIndustryWndProc(Window *w, WindowEvent *e)
case WE_CLICK: {
int wid = e->click.widget;
if (wid >= 3) {
- if (HandlePlacePushButton(w, wid, 0xFF1, 1, NULL))
+ if (HandlePlacePushButton(w, wid, SPR_CURSOR_INDUSTRY, 1, NULL))
WP(w,def_d).data_1 = wid - 3;
}
} break;