diff options
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -180,7 +180,7 @@ redraw(void) r.max.y = r.min.y+1; for(; r.min.x < bob.spr->r.max.x; r.min.x++){ r.max.x = r.min.x+1; - p = rotatept(r.min, bob.roll, Pt(Dx(bob.spr->r)/2,Dy(bob.spr->r)/2)); + p = rotatept(r.min, bob.roll, divpt(bob.spr->r.max, 2)); if(memcmp(byteaddr(bob.spr, p), byteaddr(pal[Cmask], ZP), bob.spr->depth/8) != 0){ dp = addpt(r.min, bob.p); toroidwarp(&dp); @@ -272,9 +272,9 @@ threadmain(int argc, char *argv[]) if(kdown & 1<<K→) bob.p.x++; if(kdown & 1<<KR↺) - bob.roll -= 1*DEG; - if(kdown & 1<<KR↻) bob.roll += 1*DEG; + if(kdown & 1<<KR↻) + bob.roll -= 1*DEG; toroidwarp(&bob.p); } } |