diff options
author | peter1138 <peter1138@openttd.org> | 2005-12-10 12:05:39 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-12-10 12:05:39 +0000 |
commit | 80986fcd3289879cf88a7978f5c1d305b0a48158 (patch) | |
tree | 4ae75b1c93989fadb955dd408fcc2c0589671b22 /misc_gui.c | |
parent | 50a1e16943b03a77c908d938eabcf075390e0dff (diff) | |
download | openttd-80986fcd3289879cf88a7978f5c1d305b0a48158.tar.xz |
(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c index 61c8c02b5..1de7e2061 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -59,7 +59,7 @@ static void LandInfoWndProc(Window *w, WindowEvent *e) DrawStringCentered(140, 27, STR_01A7_OWNER, 0); str = STR_01A4_COST_TO_CLEAR_N_A; - if (lid->costclear != CMD_ERROR) { + if (!CmdFailed(lid->costclear)) { SetDParam(0, lid->costclear); str = STR_01A5_COST_TO_CLEAR; } |