diff --git a/source/build/include/build.h b/source/build/include/build.h index 87d8220a0..d55be245b 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -84,7 +84,7 @@ enum rendmode_t { #define MAXPLAYERS 16 // Maximum number of component tiles in a multi-psky: #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 TSPR_TEMP 99 @@ -675,6 +675,8 @@ EXTERN uint8_t paletteloaded; EXTERN char *blendtable[MAXBLENDTABS]; EXTERN uint8_t whitecol, redcol; +int32_t maxspritesonscreen; + enum { PALETTE_MAIN = 1<<0, PALETTE_SHADE = 1<<1,