diff options
author | tron <tron@openttd.org> | 2005-10-19 06:46:41 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-19 06:46:41 +0000 |
commit | 758ae7e8f63edbcc193443963e7a8cbe7dcac675 (patch) | |
tree | b1be08aaabd03b45d086543edd2c1e7ae8031d8e /misc_gui.c | |
parent | cb67ee9bf50e46d194b62920775e2a5998a1318b (diff) | |
download | openttd-758ae7e8f63edbcc193443963e7a8cbe7dcac675.tar.xz |
(svn r3064) Replace some numbers by sprite names
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 3 |
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); |