Merge branch 'freecamstuffs' into Saturn-Testing

This commit is contained in:
Alug committed 2025-01-07 16:31:09 +01:00
commit f5018f628a
1 file changed
+2 -2
+2 -2
View File
@@ -3150,7 +3150,7 @@ static boolean P_CameraCheckHeat(camera_t *thiscam)
sector_t *sector;
fixed_t halfheight;
if (!thiscam)
if (!thiscam || !thiscam->subsector)
return false;
halfheight = thiscam->z + (thiscam->height >> 1);
@@ -3188,7 +3188,7 @@ static boolean P_CameraCheckWater(camera_t *thiscam)
sector_t *sector;
fixed_t halfheight;
if (!thiscam)
if (!thiscam || !thiscam->subsector)
return false;
halfheight = thiscam->z + (thiscam->height >> 1);