Move to a state machine
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user