Skip to content

Commit

Permalink
Remove unused paramater from DoBounce()
Browse files Browse the repository at this point in the history
This is replaced by SetEvalTick
  • Loading branch information
sjrc6 committed Nov 25, 2024
1 parent f27086d commit 6a44c96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/game/server/entities/laser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/server/entities/laser.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a44c96

Please sign in to comment.