some surface_terrains.h defines
This commit is contained in:
1 parent
9b4b9d9c03
commit
a8afa914cd
4 files changed
+22
-11
No files matched your search
@@ -55,7 +55,7 @@ static s32 find_wall_collisions_from_list(struct SurfaceNode *surfaceNode, struc
|
||||
surfaceNode = surfaceNode->next;
|
||||
type = surf->type;
|
||||
// Exclude a large number of walls immediately to optimize.
|
||||
if ((type == SURFACE_NEW_WATER) || (type == SURFACE_NEW_WATER_BOTTOM)) continue;
|
||||
if (SURFACE_IS_NEW_WATER(type)) continue;
|
||||
// Determine if checking for the camera or not.
|
||||
if (gCheckingSurfaceCollisionsForCamera) {
|
||||
if (surf->flags & SURFACE_FLAG_NO_CAM_COLLISION) continue;
|
||||
@@ -227,7 +227,7 @@ static struct Surface *find_ceil_from_list(struct SurfaceNode *surfaceNode, s32
|
||||
surfaceNode = surfaceNode->next;
|
||||
type = surf->type;
|
||||
// Determine if checking for the camera or not.
|
||||
if (type == SURFACE_NEW_WATER || type == SURFACE_NEW_WATER_BOTTOM) continue;
|
||||
if (SURFACE_IS_NEW_WATER(type)) continue;
|
||||
if (gCheckingSurfaceCollisionsForCamera) {
|
||||
if (surf->flags & SURFACE_FLAG_NO_CAM_COLLISION) continue;
|
||||
} else if (type == SURFACE_CAMERA_BOUNDARY) {
|
||||
@@ -345,7 +345,7 @@ static struct Surface *find_floor_from_list(struct SurfaceNode *surfaceNode, s32
|
||||
if (!gFindFloorIncludeSurfaceIntangible && (type == SURFACE_INTANGIBLE)) continue;
|
||||
// Determine if we are checking for the camera or not.
|
||||
if (gCheckingSurfaceCollisionsForCamera) {
|
||||
if ((surf->flags & SURFACE_FLAG_NO_CAM_COLLISION) || (surf->type == SURFACE_NEW_WATER) || (surf->type == SURFACE_NEW_WATER_BOTTOM)) continue;
|
||||
if ((surf->flags & SURFACE_FLAG_NO_CAM_COLLISION) || SURFACE_IS_NEW_WATER(type)) continue;
|
||||
} else if (surf->type == SURFACE_CAMERA_BOUNDARY) {
|
||||
continue; // If we are not checking for the camera, ignore camera only floors.
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ static void add_surface_to_cell(s32 dynamic, s32 cellX, s32 cellZ, struct Surfac
|
||||
s32 priority;
|
||||
s32 sortDir;
|
||||
s32 listIndex;
|
||||
s32 isWater = surface->type == SURFACE_NEW_WATER || surface->type == SURFACE_NEW_WATER_BOTTOM;
|
||||
s32 isWater = SURFACE_IS_NEW_WATER(surface->type);
|
||||
|
||||
if (surface->normal.y > 0.01) {
|
||||
listIndex = isWater ? SPATIAL_PARTITION_WATER : SPATIAL_PARTITION_FLOORS;
|
||||
|
||||
Reference in new issue
Block a user