diff --git a/source/build/include/clip.h b/source/build/include/clip.h index bfa935b3b..b88689e16 100644 --- a/source/build/include/clip.h +++ b/source/build/include/clip.h @@ -15,7 +15,8 @@ extern "C" { #endif -#define MAXCLIPNUM 3072 +#define MAXCLIPSECTORS 1024 +#define MAXCLIPNUM 2048 #ifdef HAVE_CLIPSHAPE_FEATURE @@ -82,7 +83,7 @@ extern linetype clipit[MAXCLIPNUM]; extern int16_t clipnum; extern int32_t clipsectnum, origclipsectnum, clipspritenum; -extern int16_t clipsectorlist[MAXCLIPNUM], origclipsectorlist[MAXCLIPNUM]; +extern int16_t clipsectorlist[MAXCLIPSECTORS], origclipsectorlist[MAXCLIPSECTORS]; int clipinsidebox(vec2_t *vect, int wallnum, int walldist); int clipinsideboxline(int x, int y, int x1, int y1, int x2, int y2, int walldist); diff --git a/source/build/src/clip.cpp b/source/build/src/clip.cpp index bf85587bd..b519b8d91 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -14,7 +14,7 @@ int16_t clipnum; linetype clipit[MAXCLIPNUM]; int32_t clipsectnum, origclipsectnum, clipspritenum; -int16_t clipsectorlist[MAXCLIPNUM], origclipsectorlist[MAXCLIPNUM]; +int16_t clipsectorlist[MAXCLIPSECTORS], origclipsectorlist[MAXCLIPSECTORS]; #ifdef HAVE_CLIPSHAPE_FEATURE int16_t clipspritelist[MAXCLIPNUM]; // sector-like sprite clipping #endif