Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/interfaces/StarBeamItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/interfaces/StarBeamItem.cpp')
-rw-r--r--source/game/interfaces/StarBeamItem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/interfaces/StarBeamItem.cpp b/source/game/interfaces/StarBeamItem.cpp
index 66e29c1..2bf8e02 100644
--- a/source/game/interfaces/StarBeamItem.cpp
+++ b/source/game/interfaces/StarBeamItem.cpp
@@ -57,9 +57,9 @@ void BeamItem::init(ToolUserEntity* owner, ToolHand hand) {
throw ItemException("BeamItem::init: Beam Gun not init'd properly, or user not recognized as Tool User.");
}
-void BeamItem::update(FireMode, bool, HashSet<MoveControlType> const&) {
+void BeamItem::update(float dt, FireMode, bool, HashSet<MoveControlType> const&) {
if (m_particleGenerateCooldown >= 0)
- m_particleGenerateCooldown -= WorldTimestep;
+ m_particleGenerateCooldown -= dt;
if (!initialized())
throw ItemException("BeamItem::update: Beam Gun not init'd properly, or user not recognized as Tool User.");