Add FF_INVERT frame flag, use hitlag colormap

This commit is contained in:
James R 2023-06-13 14:13:41 -07:00
parent 8c4502ff5b
commit ffcdce339e
2 changed files with 3 additions and 0 deletions

View file

@ -59,6 +59,8 @@ extern "C" {
#define FF_REVERSESUBTRACT ((AST_REVERSESUBTRACT-1)<<FF_BLENDSHIFT)
#define FF_MODULATE ((AST_MODULATE-1)<<FF_BLENDSHIFT)
#define FF_OVERLAY ((AST_OVERLAY-1)<<FF_BLENDSHIFT)
/// \brief Frame flags: B/W inverted colors (hitlag flashing)
#define FF_INVERT 0x8000
/// \brief Frame flags: 0 = no trans(opaque), 1-15 = transl. table
#define FF_TRANSMASK 0xf0000

View file

@ -815,6 +815,7 @@ static boolean baddie_is_flashing(mobj_t *thing)
boolean R_ThingIsFlashing(mobj_t *thing)
{
return
(thing->frame & FF_INVERT) ||
hitlag_is_flashing(thing) ||
baddie_is_flashing(thing);
}