Why the One Definition Rule exists, and being able to hide members with local variables is bad, Exhibit A.
This commit is contained in:
+1
-1
@@ -782,7 +782,7 @@ void Sprite::SetState( int iNewState )
|
|||||||
|
|
||||||
void Sprite::RecalcAnimationLengthSeconds()
|
void Sprite::RecalcAnimationLengthSeconds()
|
||||||
{
|
{
|
||||||
float m_animation_length_seconds = 0;
|
m_animation_length_seconds = 0;
|
||||||
FOREACH_CONST(State, m_States, s)
|
FOREACH_CONST(State, m_States, s)
|
||||||
{
|
{
|
||||||
m_animation_length_seconds += s->fDelay;
|
m_animation_length_seconds += s->fDelay;
|
||||||
|
|||||||
Reference in New Issue
Block a user