summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-19 06:46:41 +0000
committertron <tron@openttd.org>2005-10-19 06:46:41 +0000
commitb17b87469c353393e05b9cf3c7e391edc2332dab (patch)
treeb1be08aaabd03b45d086543edd2c1e7ae8031d8e /misc_gui.c
parentd50ef149928ba9f46cb68df6a7d94bad642c70b5 (diff)
downloadopenttd-b17b87469c353393e05b9cf3c7e391edc2332dab.tar.xz
(svn r3064) Replace some numbers by sprite names
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc_gui.c b/misc_gui.c
index e040c96ea..e3053a23c 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1753,8 +1753,7 @@ static void CheatsWndProc(Window *w, WindowEvent *e)
y=45;
for(i=0; i!=lengthof(_cheats_ui); i++,ce++) {
-
- DrawSprite((SPR_OPENTTD_BASE + ((*ce->been_used)?67:66)), x+5, y+2);
+ DrawSprite((*ce->been_used) ? SPR_BOX_CHECKED : SPR_BOX_EMPTY, x + 5, y + 2);
if (ce->type == CE_BOOL) {
DrawFrameRect(x+20, y+1, x+30+9, y+9, (*(bool*)ce->variable) ? 6 : 4, (*(bool*)ce->variable) ? FR_LOWERED : 0);