From 6a44c96ebb4b0a1afaee2fd91c02a280a9452a18 Mon Sep 17 00:00:00 2001 From: Tater Date: Sun, 24 Nov 2024 19:23:22 -0600 Subject: [PATCH] Remove unused paramater from DoBounce() This is replaced by SetEvalTick --- src/game/server/entities/laser.cpp | 4 +--- src/game/server/entities/laser.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/game/server/entities/laser.cpp b/src/game/server/entities/laser.cpp index 0cce7add2ef..b923c178af3 100644 --- a/src/game/server/entities/laser.cpp +++ b/src/game/server/entities/laser.cpp @@ -102,11 +102,9 @@ bool CLaser::HitCharacter(vec2 From, vec2 To) return true; } -void CLaser::DoBounce(bool EarlyTick) +void CLaser::DoBounce() { m_EvalTick = Server()->Tick(); - if(EarlyTick) - m_EvalTick--; if(m_Energy < 0) { diff --git a/src/game/server/entities/laser.h b/src/game/server/entities/laser.h index 2524115c6a2..6a8df2f4b3a 100644 --- a/src/game/server/entities/laser.h +++ b/src/game/server/entities/laser.h @@ -26,7 +26,7 @@ class CLaser : public CEntity protected: bool HitCharacter(vec2 From, vec2 To); - void DoBounce(bool EarlyTick = false); + void DoBounce(); private: vec2 m_From;