Skip to content

Commit c81a27b

Browse files
committed
fix blaster launcher bug
1 parent 7b4f60f commit c81a27b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Battlescape/Projectile.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ int Projectile::calculateTrajectory(double accuracy, Position originVoxel)
106106
_action.actor->getFaction() == FACTION_PLAYER &&
107107
_action.autoShotCounter == 1 &&
108108
(SDL_GetModState() & KMOD_CTRL) == 0 &&
109-
_save->getBattleGame()->getPanicHandled())
109+
_save->getBattleGame()->getPanicHandled() &&
110+
_action.type != BA_LAUNCH)
110111
{
111112
Position hitPos = Position(_trajectory.at(0).x/16, _trajectory.at(0).y/16, _trajectory.at(0).z/24);
112113
if (test == V_UNIT && _save->getTile(hitPos) && _save->getTile(hitPos)->getUnit() == 0) //no unit? must be lower

0 commit comments

Comments
 (0)