Fix squished player self fragging

patch from Striker
This commit is contained in:
nukeykt 2019-07-04 15:32:58 +09:00 committed by Christoph Oelckers
parent ab0cc0d578
commit 976fb2c9e9

View file

@ -8073,9 +8073,9 @@ HORIZONLY:;
break; break;
case APLAYER__STATIC: case APLAYER__STATIC:
{ {
int playerNum = P_Get(pPlayer->actorsqu); int playerSquished = P_Get(pPlayer->actorsqu);
P_QuickKill(g_player[playerNum].ps); P_QuickKill(g_player[playerSquished].ps);
g_player[playerNum].ps->frag_ps = playerNum; g_player[playerSquished].ps->frag_ps = playerNum;
break; break;
} }
default: default: