From b3f9747533690f7cd7ea32ab8a28dd9b99fce29e Mon Sep 17 00:00:00 2001 From: Lactozilla Date: Mon, 13 Nov 2023 12:01:19 -0300 Subject: [PATCH] Elaborate on what SPR2F_ means --- src/info.h | 2 +- src/p_pspr.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/info.h b/src/info.h index aa9bdd29d..75f721188 100644 --- a/src/info.h +++ b/src/info.h @@ -1155,7 +1155,7 @@ typedef enum playersprite SPR2_XTRA, // stuff that isn't in-map - "would this ever need an md2 or variable length animation?" SPR2_FIRSTFREESLOT, - SPR2_LASTFREESLOT = 1024, // Do not make higher than SPR2F_MASK + SPR2_LASTFREESLOT = 1024, // Do not make higher than SPR2F_MASK (currently 0x3FF) plus one NUMPLAYERSPRITES } playersprite_t; diff --git a/src/p_pspr.h b/src/p_pspr.h index e8c84daaa..be0d9f39e 100644 --- a/src/p_pspr.h +++ b/src/p_pspr.h @@ -97,8 +97,10 @@ /// \brief Frame flags - Animate: Start at a random place in the animation (mutually exclusive with above) #define FF_RANDOMANIM 0x40000000 -#define SPR2F_MASK 0x7FFF -#define SPR2F_SUPER 0x8000 +/// \brief Animation flags: Bits used for the animation ID +#define SPR2F_MASK 0x3FF +/// \brief Animation flags: "Super" flag +#define SPR2F_SUPER 0x400 /** \brief translucency tables