From 1a6f775cc3a436ac8d4e605b01d7b8caf3305a7a Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Mon, 14 Jul 2025 16:05:43 +0200 Subject: [PATCH] bruh Let's try that again, this time putting the camera in a local... --- src/r_bsp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/r_bsp.cpp b/src/r_bsp.cpp index b71a6db19..a05bf70c4 100644 --- a/src/r_bsp.cpp +++ b/src/r_bsp.cpp @@ -196,9 +196,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