1
0
Fork 0

ignore spaces after the colon in "@insert 3: ebase"

This commit is contained in:
mfranz 2006-05-08 14:53:23 +00:00
parent f9959b7f2c
commit 264edc470d

View file

@ -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);