mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 21:50:48 +00:00
Merge branch 'tatsuru-amyhugfix' into 'next'
Make Amy only hug players at the same Z height See merge request STJr/SRB2!521
This commit is contained in:
commit
14f4fa2e9c
1 changed files with 2 additions and 1 deletions
|
@ -7833,7 +7833,8 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
boolean dojump = false, targonground, love, makeheart = false;
|
||||
if (mobj->target != player->mo)
|
||||
P_SetTarget(&mobj->target, player->mo);
|
||||
targonground = (P_IsObjectOnGround(mobj->target) && (player->panim == PA_IDLE || player->panim == PA_WALK || player->panim == PA_RUN));
|
||||
// Tatsuru: Don't try to hug them if they're above or below you!
|
||||
targonground = (P_IsObjectOnGround(mobj->target) && (player->panim == PA_IDLE || player->panim == PA_WALK || player->panim == PA_RUN) && player->mo->z == mobj->z);
|
||||
love = (player->skin == 0 || player->skin == 5);
|
||||
|
||||
switch (stat)
|
||||
|
|
Loading…
Reference in a new issue