mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 07:29:10 +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:
@@ -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++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user