diff --git a/Linux/sgml/Quakespasm.sgml b/Linux/sgml/Quakespasm.sgml index 649ee9469..c2cd3e193 100644 --- a/Linux/sgml/Quakespasm.sgml +++ b/Linux/sgml/Quakespasm.sgml @@ -149,6 +149,7 @@ QuakeSpasm 0.94 has support for playing the 2021 re-release content: Copy the qu Improve handling of huge entities in SV_FindTouchedLeafs() Apply FOV gun scaling for r_showtris Sliders with visible values in options menu. + game command now refuses setting a non-existing game directory Fix build in C23 mode. Minor code cleanups. Updated third party code, e.g. SDL, music codecs, etc. Thanks to Andrei Drexler, Alexey Lysiuk, Diordany van Hemert, and Jaime Moreira for patches. diff --git a/Quake/gl_warp.c b/Quake/gl_warp.c index fd8304593..3c6ea5e94 100644 --- a/Quake/gl_warp.c +++ b/Quake/gl_warp.c @@ -44,11 +44,11 @@ static const float turbsin[] = { // //============================================================================== -msurface_t *warpface; +static msurface_t *warpface; cvar_t gl_subdivide_size = {"gl_subdivide_size", "128", CVAR_ARCHIVE}; -void BoundPoly (int numverts, float *verts, vec3_t mins, vec3_t maxs) +static void BoundPoly (int numverts, float *verts, vec3_t mins, vec3_t maxs) { int i, j; float *v; @@ -66,7 +66,7 @@ void BoundPoly (int numverts, float *verts, vec3_t mins, vec3_t maxs) } } -void SubdividePolygon (int numverts, float *verts) +static void SubdividePolygon (int numverts, float *verts) { int i, j, k; vec3_t mins, maxs; @@ -80,7 +80,7 @@ void SubdividePolygon (int numverts, float *verts) float s, t; if (numverts > 60) - Sys_Error ("numverts = %i", numverts); + Sys_Error ("SubdividePolygon: numverts = %i", numverts); BoundPoly (numverts, verts, mins, maxs); @@ -159,6 +159,9 @@ void GL_SubdivideSurface (msurface_t *fa) vec3_t verts[64]; int i; + if (fa->polys->numverts > 64) + Sys_Error ("GL_SubdivideSurface: numverts = %i", fa->polys->numverts); + warpface = fa; //the first poly in the chain is the undivided poly for newwater rendering. diff --git a/Quakespasm.html b/Quakespasm.html index 82d9224ba..753333e59 100644 --- a/Quakespasm.html +++ b/Quakespasm.html @@ -225,6 +225,7 @@

5.1 Changes in 0.96.2
  • Improve handling of huge entities in SV_FindTouchedLeafs()
  • Apply FOV gun scaling for r_showtris
  • Sliders with visible values in options menu.
  • +
  • game command now refuses setting a non-existing game directory
  • Fix build in C23 mode.
  • Minor code cleanups. Updated third party code, e.g. SDL, music codecs, etc.
  • Thanks to Andrei Drexler, Alexey Lysiuk, Diordany van Hemert, and Jaime Moreira for patches.
  • diff --git a/Quakespasm.txt b/Quakespasm.txt index 073c53f69..cd8edcb74 100644 --- a/Quakespasm.txt +++ b/Quakespasm.txt @@ -240,6 +240,8 @@ - Sliders with visible values in options menu. + - game command now refuses setting a non-existing game directory + - Fix build in C23 mode. - Minor code cleanups. Updated third party code, e.g. SDL, music