DemoProductions / shmup

3 stars 2 forks source link

Fix IsFriendly and IsEnemy to return proper values for none and neutral #77

Closed flip40 closed 8 years ago

flip40 commented 8 years ago

when team is neutral, it is enemies with everyone (IsFriendly returns false, IsEnemy returns true). when team is none, it is friends with everyone (IsFriendly returns true, IsEnemy returns false).

I think the checks would come out about: IsFriendly -> team is my team or either team is none IsEnemy -> team is not my team and neither team is none