remove prob pointless check
viewplayer will be the currently viewed displayplayer lel
This commit is contained in:
1 parent
d4f912e3b0
commit
e4e40cf049
1 file changed
+1
-2
+1
-2
@@ -196,9 +196,8 @@ sector_t *R_FakeFlat(sector_t *sec, sector_t *tempsec, INT32 *floorlightlevel,
|
||||
mobj_t *pviewmobj = viewplayer->mo;
|
||||
INT32 heightsec;
|
||||
boolean underwater;
|
||||
UINT8 i = R_GetViewNumber();
|
||||
|
||||
if (viewplayer == &players[displayplayers[i]] && camera[i].chase)
|
||||
if (camera[R_GetViewNumber()].chase)
|
||||
heightsec = camera->subsector->sector->heightsec;
|
||||
else if (viewmobj)
|
||||
heightsec = pviewmobj->subsector->sector->heightsec;
|
||||
|
||||
Reference in new issue
Block a user