Let's try that again, this time putting the camera in a local...
This commit is contained in:
GenericHeroGuy 2025-07-14 16:05:43 +02:00
parent 76614086c6
commit bac259341c

View file

@ -294,9 +294,10 @@ sector_t *R_FakeFlat(sector_t *sec, sector_t *tempsec, INT32 *floorlightlevel,
mobj_t *viewmobj = 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 = viewmobj->subsector->sector->heightsec;
else