Reduce MAXCLIPNUM to 2048 again and introduce MAXCLIPSECTORS, with a value of 1024

git-svn-id: https://svn.eduke32.com/eduke32@7459 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-30 19:36:03 +00:00 committed by Christoph Oelckers
parent ddd1d34973
commit ceaaaf9c0d
2 changed files with 4 additions and 3 deletions

View file

@ -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);

View file

@ -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