4i4in
Member
I was trying to skip checking legality of movement for characters that are not moving (they have previous and curent x/y).
I put such exclusion:
it didnt work.
So i add some clarity in case compiler have odd interpretation:
but it didnt work either.
I ended with that:
and it works.
What is wrong? Need more brackets?
Just wonder. In case I will get in such riddle again.
I put such exclusion:
if xxx1 != xxx0 && yyy1 != yyy0 {do stuff} //exclude checking not moving characters
it didnt work.
So i add some clarity in case compiler have odd interpretation:
if (xxx1 != xxx0) && (yyy1 != yyy0) {do stuff} //exclude checking not moving characters
but it didnt work either.
I ended with that:
if xxx1 = xxx0 && yyy1 = yyy0 {no code} //exclude checking not moving characters
else{do stuff}
and it works.
What is wrong? Need more brackets?
Just wonder. In case I will get in such riddle again.