Reduce MAXSPRITESONSCREEN from 4096 to 2048. Email me if you have a map so poorly designed that this actually breaks something!

git-svn-id: https://svn.eduke32.com/eduke32@6344 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-07-08 19:41:49 +00:00
parent da0cc1b9bd
commit 8d7f23a842

View file

@ -84,7 +84,7 @@ enum rendmode_t {
#define MAXPLAYERS 16 #define MAXPLAYERS 16
// Maximum number of component tiles in a multi-psky: // Maximum number of component tiles in a multi-psky:
#define MAXPSKYTILES 8 #define MAXPSKYTILES 8
#define MAXSPRITESONSCREEN 4096 #define MAXSPRITESONSCREEN 2048
#define MAXUNIQHUDID 256 //Extra slots so HUD models can store animation state without messing game sprites #define MAXUNIQHUDID 256 //Extra slots so HUD models can store animation state without messing game sprites
#define TSPR_TEMP 99 #define TSPR_TEMP 99
@ -675,6 +675,8 @@ EXTERN uint8_t paletteloaded;
EXTERN char *blendtable[MAXBLENDTABS]; EXTERN char *blendtable[MAXBLENDTABS];
EXTERN uint8_t whitecol, redcol; EXTERN uint8_t whitecol, redcol;
int32_t maxspritesonscreen;
enum { enum {
PALETTE_MAIN = 1<<0, PALETTE_MAIN = 1<<0,
PALETTE_SHADE = 1<<1, PALETTE_SHADE = 1<<1,