Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern void object::Test()
- {
- for(int i=0; i<4; i++) {
- float r = ((this.orientation-90)/90)%4;
- if(r<0) r=4+r;
- int r2 = r;
- message(this.orientation+" -> "+r+" -> "+r2);
- turn(90);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment