bruh
Let's try that again, this time putting the camera in a local...
This commit is contained in:
parent
76614086c6
commit
bac259341c
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue