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
 			{