mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Fix elemental flame trails not spawning when going up slopes
This commit is contained in:
parent
03470118cd
commit
3058648fdc
1 changed files with 8 additions and 0 deletions
|
@ -6193,6 +6193,14 @@ void P_ElementalFireTrail(player_t *player)
|
||||||
{
|
{
|
||||||
newx = player->mo->x + P_ReturnThrustX(player->mo, travelangle + ((i&1) ? -1 : 1)*ANGLE_135, FixedMul(24*FRACUNIT, player->mo->scale));
|
newx = player->mo->x + P_ReturnThrustX(player->mo, travelangle + ((i&1) ? -1 : 1)*ANGLE_135, FixedMul(24*FRACUNIT, player->mo->scale));
|
||||||
newy = player->mo->y + P_ReturnThrustY(player->mo, travelangle + ((i&1) ? -1 : 1)*ANGLE_135, FixedMul(24*FRACUNIT, player->mo->scale));
|
newy = player->mo->y + P_ReturnThrustY(player->mo, travelangle + ((i&1) ? -1 : 1)*ANGLE_135, FixedMul(24*FRACUNIT, player->mo->scale));
|
||||||
|
#ifdef ESLOPE
|
||||||
|
if (player->mo->standingslope)
|
||||||
|
{
|
||||||
|
ground = P_GetZAt(player->mo->standingslope, newx, newy);
|
||||||
|
if (player->mo->eflags & MFE_VERTICALFLIP)
|
||||||
|
ground -= FixedMul(mobjinfo[MT_SPINFIRE].height, player->mo->scale);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
flame = P_SpawnMobj(newx, newy, ground, MT_SPINFIRE);
|
flame = P_SpawnMobj(newx, newy, ground, MT_SPINFIRE);
|
||||||
P_SetTarget(&flame->target, player->mo);
|
P_SetTarget(&flame->target, player->mo);
|
||||||
flame->angle = travelangle;
|
flame->angle = travelangle;
|
||||||
|
|
Loading…
Reference in a new issue