When loading a .loc file check each line to see if it has '#' as the

first char, if so the line is a comment.
This commit is contained in:
Zephaniah E. Hull 2000-11-08 22:55:39 +00:00
parent 9ab8833def
commit 1b4ed8cc3f
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ void locs_load(char *mapname)
}
while ((line = Qgetline(file))) {
if (line[0] == '#')
continue;
loc[0] = strtol(line, &t1, 0) * (1.0/8);
loc[1] = strtol(t1, &t2, 0) * (1.0/8);
loc[2] = strtol(t2, &t1, 0) * (1.0/8);