Need help understanding a line of code...

madvoid:
Thank you all for your help, my guess was correct. Personally, I have never seen anyone write code like that!

Another crazy way to write that would be:

leap = (yOff % 4) ? 0 : 1;

The ? and : operators are very handy. They simply work like this:

"IF X is TRUE then ? (THIS HAPPENS) otherwise : (THIS HAPPENS)"