From 9ac5754e1df81aa31aabdac6cfbb543c006f9d7d Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 1 Feb 2026 16:27:16 +0100 Subject: [PATCH] fix a few type issues --- src/hardware/hw_md2.cpp | 2 +- src/r_plane.cpp | 2 +- src/r_segs.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hardware/hw_md2.cpp b/src/hardware/hw_md2.cpp index f569e5e7f..54f5f65f2 100644 --- a/src/hardware/hw_md2.cpp +++ b/src/hardware/hw_md2.cpp @@ -586,7 +586,7 @@ md2found: fclose(f); } -void HWR_AddPlayerMD2(int skin, boolean local) // For MD2's that were added after startup +void HWR_AddPlayerMD2(INT32 skin, boolean local) // For MD2's that were added after startup { FILE *f; char name[20], filename[32]; diff --git a/src/r_plane.cpp b/src/r_plane.cpp index c4ba7b8f1..78375b8b6 100644 --- a/src/r_plane.cpp +++ b/src/r_plane.cpp @@ -136,7 +136,7 @@ void R_AllocPlaneMemory(void) } yslopetab = static_cast(Z_Realloc(yslopetab, sizeof(*yslopetab) * (viewheight * 16), PU_STATIC, NULL)); - spanstart = static_cast(Z_Realloc(spanstart, sizeof(*spanstart) * viewheight, PU_STATIC, NULL)); + spanstart = static_cast(Z_Realloc(spanstart, sizeof(*spanstart) * viewheight, PU_STATIC, NULL)); } // diff --git a/src/r_segs.cpp b/src/r_segs.cpp index 6751befc9..660b91494 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -2880,7 +2880,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) if (markceiling) { if (ceilingplane) //SoM: 3/29/2000: Check for null ceiling planes - ceilingplane = R_CheckPlane (ceilingplane, rw_x, rw_stopx-1); + ceilingplane = R_CheckPlane(ceilingplane, rw_x, rw_stopx-1); else markceiling = false; @@ -2894,7 +2894,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) if (markfloor) { if (floorplane) //SoM: 3/29/2000: Check for null planes - floorplane = R_CheckPlane (floorplane, rw_x, rw_stopx-1); + floorplane = R_CheckPlane(floorplane, rw_x, rw_stopx-1); else markfloor = false;