mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
After IRC discussion, made the shells only cause pain to enemy players.
This commit is contained in:
parent
939a7b8b2e
commit
ad3b20584b
1 changed files with 2 additions and 2 deletions
|
@ -1187,8 +1187,8 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
special->threshold = TICRATE - 1;
|
special->threshold = TICRATE - 1;
|
||||||
toucher->momz = -toucher->momz;
|
toucher->momz = -toucher->momz;
|
||||||
}
|
}
|
||||||
else // source can't be given as otherwise P_PlayerHitsPlayer will fail
|
else // can't handle in PIT_CheckThing because of landing-on causing it to stop
|
||||||
P_DamageMobj(toucher, special, NULL/*special->target*/, 1, 0);
|
P_DamageMobj(toucher, special, special->target, 1, 0);
|
||||||
}
|
}
|
||||||
else if (special->threshold == 0)
|
else if (special->threshold == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue