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

Commit 39ffa9b

Browse files
GacyrGacyr
authored andcommitted
more destoryer fixes lol
1 parent 32ed4a8 commit 39ffa9b

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Dummy.rte/Devices/Weapons/Destroyer/DestroyerCannon.lua

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ end
1717
function Update(self)
1818
if self.Magazine then
1919
if self.inventorySwapTimer:IsPastSimTimeLimit() then
20-
if self.activeSound then
21-
self.activeSound:Stop();
22-
self.activeSound = nil;
23-
end
20+
self.activeSound:Stop();
2421
self.charge = 0;
2522
end
2623
self.inventorySwapTimer:Reset();
@@ -89,13 +86,9 @@ function Update(self)
8986
MovableMan:AddParticle(par);
9087

9188
self.charge = 0;
92-
self.activeSound.stop();
93-
self.activeSound = nil;
89+
self.activeSound:Stop();
9490
end
9591
end
9692
function Destroy(self)
97-
if self.activeSound then
98-
self.activeSound:Stop();
99-
self.activeSound = nil;
100-
end
93+
self.activeSound:Stop();
10194
end

0 commit comments

Comments
 (0)