summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-04-20 22:09:12 +0000
committerDarkvater <darkvater@openttd.org>2006-04-20 22:09:12 +0000
commitac763288277bb2ae7fc25a2f61018e337d18c86d (patch)
tree3b79d41033512e7d9755ed55d3c939dcd9c377d9
parentabf0d81782400e89285bb4f929b3876bf2e1d2ab (diff)
downloadopenttd-ac763288277bb2ae7fc25a2f61018e337d18c86d.tar.xz
(svn r4490) - Feature: The integer-list parser now accepts a space character as an item seperator next to the comma.
-rw-r--r--settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings.c b/settings.c
index 6123356fa..b5aec9818 100644
--- a/settings.c
+++ b/settings.c
@@ -406,7 +406,7 @@ static int parse_intlist(const char *p, int *items, int maxitems)
p = end;
items[n++] = v;
if (*p == '\0') break;
- if (*p != ',') return -1;
+ if (*p != ',' && *p != ' ') return -1;
p++;
}