mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-24 00:42:32 +00:00
Add FF_INVERT frame flag, use hitlag colormap
This commit is contained in:
parent
8c4502ff5b
commit
ffcdce339e
2 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue