summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-04 07:35:12 +0000
committertron <tron@openttd.org>2005-06-04 07:35:12 +0000
commit43f7974f6df415ae1195ca70d573d7b8947c1211 (patch)
tree88285fef5e7b9d4fce88501d60b958183e8e1a9a /console.c
parent7f0caaa89a0230fa4791bf0d4e9b45acdfb801a7 (diff)
downloadopenttd-43f7974f6df415ae1195ca70d573d7b8947c1211.tar.xz
(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing
Diffstat (limited to 'console.c')
-rw-r--r--console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console.c b/console.c
index 6239e4b60..e2b7c122b 100644
--- a/console.c
+++ b/console.c
@@ -473,7 +473,7 @@ bool GetArgumentInteger(uint32 *value, const char *arg)
}
*value = strtoul(arg, &endptr, 0);
- return (arg == endptr) ? false : true;
+ return arg != endptr;
}
// * ************************* * //