Skip to content

Commit

Permalink
Merge pull request #208 from GoogleFrog/lightningAimFix
Browse files Browse the repository at this point in the history
Fixed LightningCannon trouble with hiting targets.
  • Loading branch information
ashdnazg committed Jun 20, 2015
2 parents 77a13be + b04aec5 commit 3a3529e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Sim/Weapons/LightningCannon.cpp
Expand Up @@ -31,7 +31,7 @@ CLightningCannon::CLightningCannon(CUnit* owner, const WeaponDef* def)
void CLightningCannon::FireImpl(const bool scriptCall)
{
float3 curPos = weaponMuzzlePos;
float3 curDir = wantedDir;
float3 curDir = currentTargetPos - weaponMuzzlePos;
float3 newDir = curDir;

curDir +=
Expand Down

0 comments on commit 3a3529e

Please sign in to comment.