};
//wrap check
- if(object.y<=0){
- object.y=object.y+560;
- drawlocation=drawlocation+560;
- };
- if(object.y>=560){
- object.y=object.y-560;
- drawlocation=drawlocation-560;
+ if(object.number==1){
+ if(object.y<=0){
+ object.y=object.y+560;
+ drawlocation=drawlocation+560;
+ };
+ if(object.y>=560){
+ object.y=object.y-560;
+ drawlocation=drawlocation-560;
+ };
};
return object;
};
};
- if((object.y-drawlocation>0)and(object.y-drawlocation<79)){
- if(object.active==1){
- if(object.face==0){
- mvprintw(object.x,object.y-drawlocation,"%s",object.line0);
- };
- if(object.face==1){
- mvprintw(object.x,object.y-drawlocation,"%s",object.line1);
- };
- if(object.face==2){
- mvprintw(object.x,object.y-drawlocation,"%s",object.line1);
- mvprintw(object.x-1,object.y-drawlocation,"%s",object.line0);
- };
- };
+ int offset;
+
+ if((drawlocation>=480)and(object.number!=1)){
+ offset = drawlocation-560;
+ } else {
+ offset = drawlocation;
};
+ if(object.active==1){
+ if(object.face==0){
+ mvprintw(object.x,object.y-offset,"%s",object.line0);
+ };
+ if(object.face==1){
+ mvprintw(object.x,object.y-offset,"%s",object.line1);
+ };
+ if(object.face==2){
+ mvprintw(object.x,object.y-offset,"%s",object.line1);
+ mvprintw(object.x-1,object.y-offset,"%s",object.line0);
+ };
+ };
+
return drawlocation;
}