mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'reflected-item-fix' into 'master'
droptarget reflected items are dangerous to the thower again See merge request kart-krew-dev/ring-racers-internal!2948
This commit is contained in:
commit
3150c1f62e
1 changed files with 5 additions and 0 deletions
|
|
@ -721,6 +721,11 @@ boolean K_DropTargetCollide(mobj_t *t1, mobj_t *t2)
|
|||
t2->angle += ANGLE_180;
|
||||
if (t2->type == MT_JAWZ)
|
||||
P_SetTarget(&t2->tracer, t2->target); // Back to the source!
|
||||
|
||||
// Reflected item becomes owned by the DT owner, so it becomes dangerous the the thrower
|
||||
if (t1->target && !P_MobjWasRemoved(t1->target))
|
||||
P_SetTarget(&t2->target, t1->target);
|
||||
|
||||
t2->threshold = 10;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue