From 3b7d517be22f05cd48b6b072ee78a750ff8903cb 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.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/r_bsp.c b/src/r_bsp.c index 9ffc74673..e07ea88a7 100644 --- a/src/r_bsp.c +++ b/src/r_bsp.c @@ -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