Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit fa482bd

Browse files
committed
Fixed sinful global values
1 parent 79f961c commit fa482bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Base.rte/Devices/Shared/Scripts/TrajectoryGuide.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ function Update(self)
2323
self.guideTable[1] = Vector(self.MuzzlePos.X,self.MuzzlePos.Y);
2424

2525
local actor = ToActor(actor);
26-
guideParPos = self.MuzzlePos;
27-
guideParVel = Vector(self.projectileVel,0):RadRotate(actor:GetAimAngle(true));
26+
local guideParPos = self.MuzzlePos;
27+
local guideParVel = Vector(self.projectileVel,0):RadRotate(actor:GetAimAngle(true));
2828
for i = 1, self.maxTrajectoryPars do
2929
guideParVel = guideParVel + Vector((SceneMan.GlobalAcc.X/FrameMan.PPM),(SceneMan.GlobalAcc.Y/FrameMan.PPM));
3030
guideParPos = guideParPos + guideParVel;

0 commit comments

Comments
 (0)