beegee1 14 tahun lalu
induk
melakukan
2efcdae80f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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
 			{