diff options
Diffstat (limited to 'matchblox/engine/C_Block.h')
-rw-r--r-- | matchblox/engine/C_Block.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/matchblox/engine/C_Block.h b/matchblox/engine/C_Block.h index f0e03b7..f42c2ba 100644 --- a/matchblox/engine/C_Block.h +++ b/matchblox/engine/C_Block.h @@ -22,7 +22,8 @@ public: ~C_Block();
void Render(unsigned int f_iElapsedTime);
- inline void SetState(BlockAnimState f_State, unsigned int f_uiElapsedTime) { m_CurrState = f_State; m_uiAnimStart = f_uiElapsedTime; }
+ inline void SetState(BlockAnimState f_State, unsigned int f_uiElapsedTime)
+ { if (m_CurrState != f_State) {m_CurrState = f_State; m_uiAnimStart = f_uiElapsedTime; } }
private:
BlockAnimState m_CurrState;
|