From 1b4ed8cc3fdf94a80022bd080cd877f8ec5ec1e8 Mon Sep 17 00:00:00 2001 From: "Zephaniah E. Hull" Date: Wed, 8 Nov 2000 22:55:39 +0000 Subject: [PATCH] When loading a .loc file check each line to see if it has '#' as the first char, if so the line is a comment. --- source/locs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/locs.c b/source/locs.c index 273004e..6b34c2f 100644 --- a/source/locs.c +++ b/source/locs.c @@ -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);