diff --git a/polymer/eduke32/build/include/build.h b/polymer/eduke32/build/include/build.h index eb3267cfb..4d4b4720f 100644 --- a/polymer/eduke32/build/include/build.h +++ b/polymer/eduke32/build/include/build.h @@ -148,6 +148,7 @@ void yax_drawrooms(void (*SpriteAnimFunc)(int32_t,int32_t,int32_t,int32_t), #endif #define PICANM_TEXHITSCAN_BIT (1<<28) +#define PICANM_NOFULLBRIGHT_BIT (1<<30) #define CLIPMASK0 (((1L)<<16)+1L) #define CLIPMASK1 (((256L)<<16)+64L) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 4684cebd0..99c3d9467 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -1204,6 +1204,8 @@ static int32_t gloadtile_art(int32_t dapic, int32_t dapal, int32_t dameth, pthty } else { + const int32_t dofullbright = !(picanm[dapic]&PICANM_NOFULLBRIGHT_BIT); + for (y=0; y 239) && (dacol != 255)) + if (dacol > 239 && dacol != 255 && dofullbright) hasfullbright = 1; wpptr->a = 255; } diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 504a4cdbd..615c99368 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -9735,6 +9735,10 @@ static void G_Startup(void) G_GameExit("Failed loading art."); } + // Make the fullscreen nuke logo background non-fullbright. Has to be + // after dynamic tile remapping (from C_Compile) and loading tiles. + picanm[LOADSCREEN] |= PICANM_NOFULLBRIGHT_BIT; + // initprintf("Loading palette/lookups...\n"); G_LoadExtraPalettes();