bruh
Let's try that again, this time putting the camera in a local...
This commit is contained in:
1 parent
ddd192fad0
commit
1a6f775cc3
1 file changed
+3
-2
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user