On Sun 01 Jun 2003, Yuri wrote:
>
> >>>>I'd like to know why 4th button means z=1 and 5th z=-1 and not
> >>>>otherwise :) It seems to me a little bit alogic.
> >>>
> >>>
> >>>1 = up, -1 = down... :) i guess :) it's a bit arbitary.... :)
> >>>
> >>
> >>piece of my code:
> >>
> >>if (ee->z < 0){
> >> h++;
> >> if(h == 24) h = 0;
> >>} else {
> >> h--;
> >> if(h == -1) h = 23;
> >>}
> >>
> >
> >
> >Better still:
> >
> >h=(ee->z<0)?((h++ == 24)?0:h):((h-- == -1)?23:h);
>
> h=(ee->z<0)?((++h == 24)?0:h):((--h == -1)?23:h); actually ;)
>
I knew something was wrong! I just knew it! AAAARRRGGHHH!
--
| /*\
Ibukun Olumuyiwa | \ / Join the ASCII Ribbon Campaign
http://xcomputerman.com | X against HTML mail today!
| / \
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel