281 |
|
eyedist = atof(cp); |
282 |
|
/* look for materials */ |
283 |
|
while ((cp = scan4var(buf, sizeof(buf), "materials", fp)) != NULL) { |
284 |
< |
nscenef += wordstring(scene+nscenef, cp); |
284 |
> |
nscenef += wordstring(scene+nscenef, MAXSCENE-nscenef, cp); |
285 |
|
buf[0] = '\0'; |
286 |
|
} |
287 |
|
/* look for octree */ |
289 |
|
octree = savqstr(cp); |
290 |
|
/* look for scene files */ |
291 |
|
while ((cp = scan4var(buf, sizeof(buf), "scene", fp)) != NULL) { |
292 |
< |
nscenef += wordstring(scene+nscenef, cp); |
292 |
> |
nscenef += wordstring(scene+nscenef, MAXSCENE-nscenef, cp); |
293 |
|
buf[0] = '\0'; |
294 |
|
} |
295 |
|
/* load view names */ |