summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 1e0aa37..69ad117 100644
--- a/main.c
+++ b/main.c
@@ -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);
}
}