beegee1 14 년 전
부모
커밋
2efcdae80f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 			{