beegee1 %!s(int64=14) %!d(string=hai) anos
pai
achega
2efcdae80f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/CBattleInterface.cpp

+ 1 - 1
client/CBattleInterface.cpp

@@ -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
 			{