mirror of
https://github.com/abakh/nbsdgames.git
synced 2025-02-02 15:07:27 -05:00
print it right
This commit is contained in:
parent
73d4996881
commit
f04f428b2f
9
common.h
9
common.h
@ -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;
|
||||
}
|
||||
|
||||
|
8
fisher.c
8
fisher.c
@ -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)
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user