beegee1 14 năm trước cách đây
mục cha
commit
2efcdae80f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 			{