mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
* Fixed #750
This commit is contained in:
parent
9ca5d9048a
commit
2efcdae80f
@ -3647,7 +3647,7 @@ void CBattleInterface::projectileShowHelper(SDL_Surface * to)
|
||||
{
|
||||
// Parabolic shot of the trajectory, as follows: f(x) = ax^2 + bx + c
|
||||
it->x += it->dx;
|
||||
it->y = it->catapultInfo->calculateY(it->x);
|
||||
it->y = it->catapultInfo->calculateY(it->x - this->pos.x) + this->pos.y;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user