Are you kidding me? This fixes the elevator in Duke3D E2L3.

This commit is contained in:
Richard C. Gobeille 2020-04-07 10:17:40 -07:00 committed by Christoph Oelckers
parent 53baf228eb
commit ec3e8bffe1
1 changed files with 1 additions and 1 deletions

View File

@ -4828,7 +4828,7 @@ void P_ProcessInput(int playerNum)
{
int const spriteNum = highZhit & (MAXSPRITES-1);
if ((sprite[spriteNum].z + PMINHEIGHT > pPlayer->pos.z)
if ((spriteNum != pPlayer->i && sprite[spriteNum].z + PMINHEIGHT > pPlayer->pos.z)
|| (sprite[spriteNum].statnum == STAT_ACTOR && sprite[spriteNum].extra >= 0))
{
highZhit = 0;