summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-12-13 21:21:57 +0000
committerDarkvater <Darkvater@openttd.org>2005-12-13 21:21:57 +0000
commit573ce05eb8f97e03f20fc73a5c00738404f3517f (patch)
tree641d3c568019ae2e01d4e7be32c3754de9e2c2ee /command.c
parentacf8bba4f67f99f4e215f7b4867d0f5220557425 (diff)
downloadopenttd-573ce05eb8f97e03f20fc73a5c00738404f3517f.tar.xz
(svn r3294) - Fix: use INVALID_STRING_ID instead of -1.
- Fix: savegames only give back one message, show this by ignoring the first argument. Perhaps make the message more verbose in the future by adding STR_ equivalents next to the already existing debug messages.
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/command.c b/command.c
index 5b32156a8..981677f35 100644
--- a/command.c
+++ b/command.c
@@ -340,9 +340,7 @@ int32 DoCommand(int x, int y, uint32 p1, uint32 p2, uint32 flags, uint procc)
proc = _command_proc_table[procc].proc;
- if (_docommand_recursive == 0) {
- _error_message = INVALID_STRING_ID;
- }
+ if (_docommand_recursive == 0) _error_message = INVALID_STRING_ID;
_docommand_recursive++;