Acommodate MF2_SHADOW in first person view

This commit is contained in:
toaster 2018-07-19 16:07:14 +01:00
parent c72225f58e
commit 1f5f00da34

View file

@ -5509,9 +5509,11 @@ static void K_drawKartFirstPerson(void)
{ {
if (stplyr->speed < FixedMul(stplyr->runspeed, stplyr->mo->scale) && (leveltime & 1) && !splitscreen) if (stplyr->speed < FixedMul(stplyr->runspeed, stplyr->mo->scale) && (leveltime & 1) && !splitscreen)
y++; y++;
// this isn't EXPLICITLY right, it just gets the result we want, but i'm too lazy to look up the right way to do it // the following isn't EXPLICITLY right, it just gets the result we want, but i'm too lazy to look up the right way to do it
if (stplyr->mo->frame & FF_TRANSMASK) if (stplyr->mo->flags2 & MF2_SHADOW)
splitflags |= (stplyr->mo->frame & FF_TRANSMASK); // ditto splitflags |= FF_TRANS80;
else if (stplyr->mo->frame & FF_TRANSMASK)
splitflags |= (stplyr->mo->frame & FF_TRANSMASK);
} }
if (cmd->driftturn > 400) // strong left turn if (cmd->driftturn > 400) // strong left turn