mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-16 16:41:30 +00:00
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:
parent
9ab8833def
commit
1b4ed8cc3f
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue