Some more cleanup
This commit is contained in:
1 parent
6155b6416a
commit
ea0fd25a73
60 files changed
+731
-1011
No files matched your search
@@ -173,7 +173,7 @@ static s32 lower_cell_index(s32 coord) {
|
||||
//! Some wall checks are larger than the buffer, meaning wall checks can
|
||||
// miss walls that are near a cell border.
|
||||
if (coord % CELL_SIZE < 50) {
|
||||
index -= 1;
|
||||
index--;
|
||||
}
|
||||
|
||||
if (index < 0) {
|
||||
@@ -205,7 +205,7 @@ static s32 upper_cell_index(s32 coord) {
|
||||
//! Some wall checks are larger than the buffer, meaning wall checks can
|
||||
// miss walls that are near a cell border.
|
||||
if (coord % CELL_SIZE > CELL_SIZE - 50) {
|
||||
index += 1;
|
||||
index++;
|
||||
}
|
||||
|
||||
if (index > NUM_CELLS_INDEX) {
|
||||
@@ -372,12 +372,12 @@ static void load_static_surfaces(TerrainData **data, TerrainData *vertexData, s3
|
||||
s32 flags = surf_has_no_cam_collision(surfaceType);
|
||||
|
||||
numSurfaces = *(*data);
|
||||
*data += 1;
|
||||
(*data)++;
|
||||
|
||||
for (i = 0; i < numSurfaces; i++) {
|
||||
if (*surfaceRooms != NULL) {
|
||||
room = *(*surfaceRooms);
|
||||
*surfaceRooms += 1;
|
||||
(*surfaceRooms)++;
|
||||
}
|
||||
|
||||
surface = read_surface_data(vertexData, data);
|
||||
@@ -404,7 +404,7 @@ static void load_static_surfaces(TerrainData **data, TerrainData *vertexData, s3
|
||||
#else
|
||||
*data += 3;
|
||||
if (hasForce) {
|
||||
*data += 1;
|
||||
(*data)++;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user