After IRC discussion, made the shells only cause pain to enemy players.

This commit is contained in:
toasterbabe 2017-01-25 14:52:36 +00:00
parent 939a7b8b2e
commit ad3b20584b
1 changed files with 2 additions and 2 deletions

View File

@ -1187,8 +1187,8 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
special->threshold = TICRATE - 1;
toucher->momz = -toucher->momz;
}
else // source can't be given as otherwise P_PlayerHitsPlayer will fail
P_DamageMobj(toucher, special, NULL/*special->target*/, 1, 0);
else // can't handle in PIT_CheckThing because of landing-on causing it to stop
P_DamageMobj(toucher, special, special->target, 1, 0);
}
else if (special->threshold == 0)
{