fix a really stupid error (missing {}s) that caused vis data to basicly get

lost when reading the new portal file format
This commit is contained in:
Bill Currie 2004-03-19 02:20:47 +00:00
parent 9e6be1e029
commit 38c5b92086

View file

@ -793,11 +793,12 @@ LoadPortals (char *name)
leafcluster = calloc (numrealleafs, sizeof (int));
if (read_leafs) {
for (i = 0; i < numrealleafs; i++)
for (i = 0; i < numrealleafs; i++) {
line = Qgetline (f);
if (sscanf (line, "%i\n", &leafcluster[i]) != 1)
Sys_Error ("LoadPortals: parse error in leaf->cluster "
"mappings");
}
} else {
for (i = 0; i < numrealleafs; i++)
leafcluster[i] = i;