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 e370643
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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
9 changes: 2 additions & 7 deletions src/game/server/entities/laser.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ class CLaser : public CEntity
{
public:
CLaser(
CGameWorld *pGameWorld,
vec2 Pos,
vec2 Direction,
float StartEnergy,
int Owner,
int Type);
CGameWorld *pGameWorld, vec2 Pos, vec2 Direction, float StartEnergy, int Owner, int Type);

virtual void Reset() override;
virtual void Tick() override;
Expand All @@ -26,7 +21,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 e370643

Please sign in to comment.