ignore spaces after the colon in "@insert 3: ebase"
This commit is contained in:
parent
f9959b7f2c
commit
264edc470d
1 changed files with 5 additions and 1 deletions
|
@ -383,7 +383,11 @@ void FGRouteMgr::Listener::valueChanged(SGPropertyNode *prop)
|
||||||
else if (!strncmp(s, "@insert", 7)) {
|
else if (!strncmp(s, "@insert", 7)) {
|
||||||
char *r;
|
char *r;
|
||||||
int pos = strtol(s + 7, &r, 10);
|
int pos = strtol(s + 7, &r, 10);
|
||||||
if (*r++ == ':' && *r)
|
if (*r++ != ':')
|
||||||
|
return;
|
||||||
|
while (isspace(*r))
|
||||||
|
r++;
|
||||||
|
if (*r)
|
||||||
mgr->new_waypoint(r, pos);
|
mgr->new_waypoint(r, pos);
|
||||||
} else
|
} else
|
||||||
mgr->new_waypoint(s);
|
mgr->new_waypoint(s);
|
||||||
|
|
Loading…
Reference in a new issue