mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Fix conveyor check in collisioncheck() always being true
cppcheck said: "Logical disjunction always evaluates to true". Yes. Yes it does. Whoops. I learned how to specify ranges like this in high school math and still screw it up...
This commit is contained in:
parent
3434ad8777
commit
3ce442459e
1 changed files with 1 additions and 1 deletions
|
@ -4674,7 +4674,7 @@ void entityclass::collisioncheck(int i, int j, bool scm /*= false*/)
|
|||
}
|
||||
break;
|
||||
case 2: //Moving platforms
|
||||
if (entities[j].behave >= 8 || entities[j].behave < 10)
|
||||
if (entities[j].behave >= 8 && entities[j].behave < 10)
|
||||
{
|
||||
//We don't want conveyors, moving platforms only
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue