Permalink
Browse files

More batched bits and fixed ceiling collisions

  • Loading branch information...
1 parent f8fbe50 commit 162ccb06f52837a650cdd8c9bca37a1044b94bda @serprex committed Mar 26, 2012
Showing with 9 additions and 11 deletions.
  1. +9 −11 ef.c
View
20 ef.c
@@ -104,17 +104,15 @@ int main(int argc,char**argv){
Pya=fmin(Pya+.09375,3);
Py+=Pya;
Pupmask();
- for(int x=0;x<6;x+=5){
- if(Pya>0&&nthbit(Pmask.y15,x)){
- Pya=0;
- Py=ceil(Py);
- do Pupmask(); while(Pmask.y15&&(Py--,1));
- }
- if(Pya<0&&nthbit(Pmask.y0,x)){
- Pya=0;
- Py=floor(Py);
- do Pupmask(); while(Pmask.y15&&(Py++,1));
- }
+ if(Pya>0&&Pmask.y15){
+ Pya=0;
+ Py=ceil(Py);
+ do Pupmask(); while(Pmask.y15&&(Py--,1));
+ }
+ if(Pya<0&&Pmask.y0){
+ Pya=0;
+ Py=floor(Py);
+ do Pupmask(); while(Pmask.y0&&(Py++,1));
}
drawSpr(Man,Px-Wx,Py-Wy,Pya>1.125?4:Pj<-1?3:oPx==Px?0:1+!(t&32),Pd);
}

0 comments on commit 162ccb0

Please sign in to comment.