Skip to content

Commit

Permalink
Vehicles: Fix projectile delayed calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa authored and killerwife committed Oct 30, 2023
1 parent 030f137 commit d28db40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/Spells/Spell.cpp
Expand Up @@ -1293,12 +1293,13 @@ uint64 Spell::CalculateDelayMomentForDst() const
}
}

return 0;
return 0;
}

void Spell::RecalculateDelayMomentForDest()
{
m_delayMoment = CalculateDelayMomentForDst();
m_destTargetInfo.timeDelay = m_delayMoment;
m_trueCaster->m_events.ModifyEventTime(m_spellEvent, GetDelayStart() + m_delayMoment);
}

Expand Down

0 comments on commit d28db40

Please sign in to comment.