From 8d7f23a84291a33be903deba81ff1c2b01465d7c Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 8 Jul 2017 19:41:49 +0000 Subject: [PATCH] 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 --- source/build/include/build.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,