mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
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:
parent
9e6be1e029
commit
38c5b92086
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue