add cam check here

This commit is contained in:
Alug committed 2024-07-23 20:32:16 +02:00
1 parent 6655c0d881
commit f6f9542d6e
1 file changed
+12 -2
+12 -2
View File
@@ -3144,7 +3144,12 @@ static void P_SceneryCheckWater(mobj_t *mobj)
static boolean P_CameraCheckHeat(camera_t *thiscam)
{
sector_t *sector;
fixed_t halfheight = thiscam->z + (thiscam->height >> 1);
fixed_t halfheight;
if (!thiscam)
return false;
halfheight = thiscam->z + (thiscam->height >> 1);
// see if we are in water
sector = thiscam->subsector->sector;
@@ -3177,7 +3182,12 @@ static boolean P_CameraCheckHeat(camera_t *thiscam)
static boolean P_CameraCheckWater(camera_t *thiscam)
{
sector_t *sector;
fixed_t halfheight = thiscam->z + (thiscam->height >> 1);
fixed_t halfheight;
if (!thiscam)
return false;
halfheight = thiscam->z + (thiscam->height >> 1);
// see if we are in water
sector = thiscam->subsector->sector;