1
0
mirror of https://github.com/abakh/nbsdgames.git synced 2024-06-08 17:20:41 +00:00

print it right

This commit is contained in:
me 2022-01-28 19:36:50 +03:30
parent 73d4996881
commit f04f428b2f
3 changed files with 10 additions and 9 deletions

View File

@ -88,3 +88,12 @@ byte fallback_to_home(const char* name,long wscore,byte save_to_num){// only sav
return ret;
}
byte digit_count(int num){
byte ret=0;
do{
++ret;
num/=10;
}while(num);
return ret;
}

View File

@ -52,14 +52,6 @@ byte hook=0, hooknum=0;
byte clb,clbtime=0;
int input;
byte digit_count(int num){
byte ret=0;
do{
++ret;
num/=10;
}while(num);
return ret;
}
void filled_rect(byte sy,byte sx,byte ey,byte ex){
byte y,x;
for(y=sy;y<ey;++y)

View File

@ -634,7 +634,7 @@ int main(int argc,char** argv){
gameplay();
}
}
move(EMPTY_LINES+view_len,0);
printw("Wanna play again?(y/n)");
nocbreak();
cbreak();