diff --git a/polymer/eduke32/build/include/build.h b/polymer/eduke32/build/include/build.h index 7ced7c17f..274e1ab53 100644 --- a/polymer/eduke32/build/include/build.h +++ b/polymer/eduke32/build/include/build.h @@ -33,7 +33,7 @@ extern "C" { #define M32_FIXME_WALLS 512 #define M32_FIXME_SECTORS 2 -#define MAXTILES 15360 +#define MAXTILES 30720 #define MAXVOXELS 4096 #define MAXSTATUS 1024 #define MAXPLAYERS 16 @@ -786,7 +786,7 @@ typedef struct char pal; } tile2model_t; -# define EXTRATILES MAXTILES +# define EXTRATILES (MAXTILES/8) EXTERN int32_t mdinited; EXTERN tile2model_t tile2model[MAXTILES+EXTRATILES]; diff --git a/polymer/eduke32/build/src/mdsprite.c b/polymer/eduke32/build/src/mdsprite.c index aac6a5d7f..a2e69a116 100644 --- a/polymer/eduke32/build/src/mdsprite.c +++ b/polymer/eduke32/build/src/mdsprite.c @@ -40,7 +40,10 @@ static int32_t addtileP(int32_t model,int32_t tile,int32_t pallet) UNREFERENCED_PARAMETER(model); if (curextra==MAXTILES+EXTRATILES-1) + { + initprintf("warning: max EXTRATILES reached\n"); return curextra; + } if (tile2model[tile].modelid==-1) {