Move to a state machine

This commit is contained in:
2014-06-14 12:05:34 -07:00
parent 8e4c9f9bbb
commit f32e38145a

View File

@@ -878,7 +878,7 @@ function exchangeState(spr, state1, state2)
function hasState(spr, state)
{
if ( spr.state & state == state )
if ( (spr.state & state) == state )
return true;
return false;
}