mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 17:21:24 +00:00
Linedef type 464: Use taglist search to find egg capsule center
This commit is contained in:
parent
41d18bc591
commit
8b6140ddb2
1 changed files with 6 additions and 12 deletions
18
src/p_spec.c
18
src/p_spec.c
|
@ -3614,25 +3614,19 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
|
|
||||||
case 464: // Trigger Egg Capsule
|
case 464: // Trigger Egg Capsule
|
||||||
{
|
{
|
||||||
thinker_t *th;
|
INT32 mtnum;
|
||||||
mobj_t *mo2;
|
mobj_t *mo2;
|
||||||
|
|
||||||
// Find the center of the Eggtrap and release all the pretty animals!
|
// Find the center of the Eggtrap and release all the pretty animals!
|
||||||
// The chimps are my friends.. heeheeheheehehee..... - LouisJM
|
// The chimps are my friends.. heeheeheheehehee..... - LouisJM
|
||||||
for (th = thlist[THINK_MOBJ].next; th != &thlist[THINK_MOBJ]; th = th->next)
|
TAG_ITER_THINGS(line->args[0], mtnum)
|
||||||
{
|
{
|
||||||
if (th->function.acp1 == (actionf_p1)P_RemoveThinkerDelayed)
|
mo2 = mapthings[mtnum].mobj;
|
||||||
|
|
||||||
|
if (!mo2)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
mo2 = (mobj_t *)th;
|
if (mo2->thinker.function.acp1 == (actionf_p1)P_RemoveThinkerDelayed)
|
||||||
|
|
||||||
if (mo2->type != MT_EGGTRAP)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!mo2->spawnpoint)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!Tag_Find(&mo2->spawnpoint->tags, line->args[0]))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
P_KillMobj(mo2, NULL, mo, 0);
|
P_KillMobj(mo2, NULL, mo, 0);
|
||||||
|
|
Loading…
Reference in a new issue