mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-26 05:51:36 +00:00
fix the misterious crass caused by loading a .loc file a second time. This one
was very sneeky :)
This commit is contained in:
parent
dbda53e93b
commit
ccd1f6f025
1 changed files with 3 additions and 1 deletions
|
@ -105,7 +105,8 @@ void locs_load(char *mapname)
|
||||||
loc[2] = strtol(t2, &t1, 0) * (1.0/8);
|
loc[2] = strtol(t2, &t1, 0) * (1.0/8);
|
||||||
t1++;
|
t1++;
|
||||||
t2 = strrchr(t1, '\n');
|
t2 = strrchr(t1, '\n');
|
||||||
t2[0] = '\0';
|
if (t2)
|
||||||
|
t2[0] = '\0';
|
||||||
locs_add(loc, t1);
|
locs_add(loc, t1);
|
||||||
}
|
}
|
||||||
Qclose(file);
|
Qclose(file);
|
||||||
|
@ -122,6 +123,7 @@ void locs_reset()
|
||||||
}
|
}
|
||||||
|
|
||||||
free(locations);
|
free(locations);
|
||||||
|
locations=0;
|
||||||
locations_alloced = 0;
|
locations_alloced = 0;
|
||||||
locations_count = 0;
|
locations_count = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue