FrostyCat
Redemption Seeker
No, it absolutely isn't doing what you expect.As far as I'm concerned that line is doing exactly what we expect.
If you're implying that that line is one of the potential issues, instead of just blatantly referencing Morgan's laws why not elaborate on why you believe the line to not be doing what we want it too?
- "slot is full" is characterized by !(inst == -1).
- "unchecked" is characterized by !inst.checked.
And here is another case of it happening:
Code:
if(!(x_offset == 0 && y_offset == 0))
{//if both offset values are not zero
If neither of you start applying De Morgan's Laws on your code, expect more logical fallacies like these to come your way.