|
|
|
@ -49,9 +49,9 @@ void world_load(const u_long *data, world_t *world) |
|
|
|
LOAD_CHUNK(ps1bsp_plane_t, world->planes, world->numPlanes, bytes, header->planes); |
|
|
|
LOAD_CHUNK(ps1bsp_node_t, world->nodes, world->numNodes, bytes, header->nodes); |
|
|
|
LOAD_CHUNK(ps1bsp_leaf_t, world->leaves, world->numLeaves, bytes, header->leaves); |
|
|
|
LOAD_CHUNK(ps1bsp_model_t, world->models, world->numModels, bytes, header->models); |
|
|
|
LOAD_CHUNK(u_short, world->leafFaces, world->numLeafFaces, bytes, header->leafFaces); |
|
|
|
LOAD_CHUNK(u_char, world->visData, world->numVisData, bytes, header->visData); |
|
|
|
LOAD_CHUNK(ps1bsp_model_t, world->models, world->numModels, bytes, header->models); |
|
|
|
} |
|
|
|
|
|
|
|
static INLINE short world_pointPlaneDist(const VECTOR *point, const ps1bsp_plane_t *plane) |
|
|
|
@ -331,7 +331,7 @@ void world_draw(const world_t *world) |
|
|
|
else |
|
|
|
world_drawface = &world_drawface_lit; |
|
|
|
|
|
|
|
ps1bsp_leaf_t *firstLeaf = world_sortLeafs(world, 0, pvs); |
|
|
|
ps1bsp_leaf_t *firstLeaf = world_sortLeafs(world, world->models[0].nodeId0, pvs); |
|
|
|
ps1bsp_face_t *firstFace = world_sortFaces(world, firstLeaf); |
|
|
|
world_drawFaces(world, firstFace); |
|
|
|
} |