From be79ded91e386cf1117f5934f343bd1ca36aa464 Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Thu, 30 Sep 2021 10:31:31 +0100 Subject: [PATCH] Fix build error with debug_box.c --- src/game/debug_box.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/game/debug_box.c b/src/game/debug_box.c index cc014e1e..cff86906 100644 --- a/src/game/debug_box.c +++ b/src/game/debug_box.c @@ -210,7 +210,6 @@ extern s32 gSurfacesAllocated; void iterate_surfaces_visual(s32 x, s32 z, Vtx *verts) { struct SurfaceNode *node; struct Surface *surf; - s32 cellX, cellZ; s32 i = 0; s32 col[3] = {0xFF, 0x00, 0x00}; @@ -337,7 +336,6 @@ void visual_surface_display(Vtx *verts, s32 iteration) s32 iterate_surface_count(s32 x, s32 z) { struct SurfaceNode *node; - s32 cellX, cellZ; s32 i = 0; s32 j = 0; TerrainData *p = gEnvironmentRegions; @@ -350,8 +348,8 @@ s32 iterate_surface_count(s32 x, s32 z) return 0; } - cellX = GET_CELL_COORD(x); - cellZ = GET_CELL_COORD(z); + s32 cellX = GET_CELL_COORD(x); + s32 cellZ = GET_CELL_COORD(z); for (i = 0; i < 8; i++) {