mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
(svn r6783) -Codechange: Allow ParseConnectionString to allow players with more than one digit
This commit is contained in:
parent
a01ae2bafe
commit
4bb6587f40
@ -527,8 +527,10 @@ void ParseConnectionString(const char **player, const char **port, char *connect
|
||||
char *p;
|
||||
for (p = connection_string; *p != '\0'; p++) {
|
||||
if (*p == '#') {
|
||||
*player = p + 1;
|
||||
*p = '\0';
|
||||
*player = ++p;
|
||||
while (IsValidAsciiChar(*p, CS_NUMERAL)) p++;
|
||||
if (*p == '\0') break;
|
||||
} else if (*p == ':') {
|
||||
*port = p + 1;
|
||||
*p = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user