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

Commit b9cfc19

Browse files
committed
Maximum Lua efficiency
1 parent 405c45f commit b9cfc19

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dummy.rte/Devices/Weapons/Lancer/Lancer.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ function Update(self)
5555
self.chargeTimer:Reset();
5656

5757
if self.chargeCounter == self.maxCharge and self.bleepSoundPlayed == false then
58-
self.bleepSound:Play(self.Pos);
59-
self.bleepSoundPlayed = true;
58+
self.bleepSoundPlayed = self.bleepSound:Play(self.Pos);
6059
end
6160
end
6261
end

0 commit comments

Comments
 (0)