Let's try that again, this time putting the camera in a local...
This commit is contained in:
GenericHeroGuy authored and Alug committed 2025-07-24 16:38:55 +02:00
1 parent f4da64e3fa
commit 3b7d517be2
1 file changed
+3 -2
+3 -2
View File
@@ -264,9 +264,10 @@ sector_t *R_FakeFlat(sector_t *sec, sector_t *tempsec, INT32 *floorlightlevel,
mobj_t *pviewmobj = viewplayer->mo;
INT32 heightsec;
boolean underwater;
camera_t *thiscam = &camera[R_GetViewNumber()];
if (camera[R_GetViewNumber()].chase)
heightsec = camera->subsector->sector->heightsec;
if (thiscam->chase)
heightsec = thiscam->subsector->sector->heightsec;
else if (viewmobj)
heightsec = pviewmobj->subsector->sector->heightsec;
else