mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r4490) - Feature: The integer-list parser now accepts a space character as an item seperator next to the comma.
This commit is contained in:
parent
abf0d81782
commit
ac76328827
@ -406,7 +406,7 @@ static int parse_intlist(const char *p, int *items, int maxitems)
|
|||||||
p = end;
|
p = end;
|
||||||
items[n++] = v;
|
items[n++] = v;
|
||||||
if (*p == '\0') break;
|
if (*p == '\0') break;
|
||||||
if (*p != ',') return -1;
|
if (*p != ',' && *p != ' ') return -1;
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user