fix postimg data types mismatch

also remove the "postimgflag_t" typedef since its useless
and use smoler type for everything we dont need much space lol
This commit is contained in:
Alug committed 2025-01-08 18:34:16 +01:00
1 parent f52db71ec6
commit 10b56e7b4f
4 files changed
+14 -12

No files matched your search

-9
View File
@@ -342,15 +342,6 @@ union FColorRGBA
} ATTRPACK;
typedef union FColorRGBA RGBA_t;
typedef enum
{
POSTIMG_WATER = 1, // Underwater screen effect.
POSTIMG_MOTION = 1<<1, // Unused motion blur effect.
POSTIMG_FLIP = 1<<2, // Flipcam screen effect.
POSTIMG_HEAT = 1<<3, // Heatwave screen effect.
POSTIMG_MIRROR = 1<<4, // encore screen effect.
} postimgflag_t;
typedef UINT32 lumpnum_t; // 16 : 16 unsigned long (wad num: lump num)
#define LUMPERROR UINT32_MAX
+12 -1
View File
@@ -78,6 +78,7 @@ void P_UnlinkThinker(thinker_t *thinker);
//
// P_USER
//
typedef struct camera_s
{
boolean chase;
@@ -127,9 +128,19 @@ typedef struct camera_s
fixed_t pan;
// postproccess effects
UINT16 postimg;
UINT8 postimg;
} camera_t;
// post process types
enum
{
POSTIMG_WATER = 1, // Underwater screen effect.
POSTIMG_MOTION = 1<<1, // Unused motion blur effect.
POSTIMG_FLIP = 1<<2, // Flipcam screen effect.
POSTIMG_HEAT = 1<<3, // Heatwave screen effect.
POSTIMG_MIRROR = 1<<4, // encore screen effect.
};
extern camera_t camera[MAXSPLITSCREENPLAYERS];
extern consvar_t cv_cam_dist[MAXSPLITSCREENPLAYERS];
extern consvar_t cv_cam_still[MAXSPLITSCREENPLAYERS];
+1 -1
View File
@@ -3244,7 +3244,7 @@ void P_DestroyRobots(void)
void P_CalcChasePostImg(player_t *player, camera_t *thiscam)
{
const boolean flipcam = (player->pflags & PF_FLIPCAM && !(player->pflags & PF_NIGHTSMODE) && player->mo->eflags & MFE_VERTICALFLIP);
UINT16 postimgtype = 0;
UINT8 postimgtype = 0;
if (encoremode)
postimgtype |= POSTIMG_MIRROR;
+1 -1
View File
@@ -4248,7 +4248,7 @@ static boolean P_CameraCheckWaterFirstperson(player_t *player, sector_t *sector,
static void P_CalcPostImg(player_t *player, camera_t *thiscam)
{
sector_t *sector = NULL;
INT16 postimgtype = 0;
UINT8 postimgtype = 0;
//INT32 *param;
fixed_t pviewheight = 0;