Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
conde2 committed Nov 13, 2023
1 parent 31aaaa7 commit 4c9d39a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/client/attachedeffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,8 @@ void AttachedEffect::draw(const Point& dest, bool isOnTop, LightView* lightView)
const int animation = getCurrentAnimationPhase();
if (m_loop > -1 && animation != m_lastAnimation) {
m_lastAnimation = animation;
if (animation == 0) {
--m_loop;

if (m_frame == 0 && m_loop == 0)
return;
}
if (animation == 0 && --m_loop == 0)
return;
}

if (m_shader) g_drawPool.setShaderProgram(m_shader, true);
Expand Down

0 comments on commit 4c9d39a

Please sign in to comment.