the indian dude never used a while, never a switch, never structs... only global variables... beside that i found a lot of logical mistakes.
but my boss claims that his code works somehow (at least the "main" part, lol). I am now going to improve his shit, but here i got stuck...
i got the variable "ass" and the constants L0,L1,L2,L3.
Code
ass = (ass == L3)? L0 :
(
(ass == L0)? L1 :
(
(ass == L1)? L2 : L3
)
);
i removed any indention, because there were about 70-80 spaces before the brackets.
i assume this means:
Code
when ass was L3, then ass now is L0
when ass was L0, then ass now is L1
when ass was L1, then ass now is L2
when ass was L2, then ass now is L3