Skip to content

Commit

Permalink
Fix #4821
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdnazg committed Jun 19, 2015
1 parent 8b373fe commit 71b7fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rts/Sim/Weapons/Rifle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CRifle::CRifle(CUnit* owner, const WeaponDef* def): CWeapon(owner, def)

void CRifle::FireImpl(const bool scriptCall)
{
float3 dir = wantedDir;
float3 dir = currentTargetPos - weaponMuzzlePos;
dir +=
(gs->randVector() * SprayAngleExperience() + SalvoErrorExperience());
dir.Normalize();
Expand Down

2 comments on commit 71b7fc3

@GoogleFrog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs to do be done for LightningCannon

@GoogleFrog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done and opened a PR #208

Please sign in to comment.