0
0
mirror of https://github.com/abakh/nbsdgames.git synced 2025-06-30 22:19:58 -04:00

fixing warnings

This commit is contained in:
Your Name 2021-07-18 22:41:48 +00:00
parent bba748811c
commit f1a58a9e4a
2 changed files with 1 additions and 4 deletions

View File

@ -86,8 +86,8 @@ void draw(void){
/*while(LEN< 15 || COL<80) /*while(LEN< 15 || COL<80)
mvprintw(0,0,"Screen size should at least be 80*15 characters");*/ mvprintw(0,0,"Screen size should at least be 80*15 characters");*/
attron(colors[0]); attron(colors[0]);
byte y,x;
filled_rect(0,0,12,80); filled_rect(0,0,12,80);
byte y;
mvprintw(0,0," __ Hooks:%d",hooknum); mvprintw(0,0," __ Hooks:%d",hooknum);
mvprintw(1,0,"|__ Score:%d",score); mvprintw(1,0,"|__ Score:%d",score);
mvprintw(2,0,"| ISHER"); mvprintw(2,0,"| ISHER");
@ -190,7 +190,6 @@ byte save_score(void){
void show_scores(byte playerrank){ void show_scores(byte playerrank){
byte y,x;
attron(colors[3]); attron(colors[3]);
filled_rect(0,0,LEN,WID); filled_rect(0,0,LEN,WID);
green_border(); green_border();
@ -368,7 +367,6 @@ int main(void){
flushinp(); flushinp();
} }
} }
End:
flushinp(); flushinp();
nocbreak(); nocbreak();
cbreak(); cbreak();

View File

@ -480,7 +480,6 @@ long decide(byte board[len][wid],snake *me,snake *enemy){
int dist=(y_dist+x_dist); int dist=(y_dist+x_dist);
long g=go_deep(board,*me,1); long g=go_deep(board,*me,1);
reportd(g); reportd(g);
long max_survival;
byte directions[4]={0,1,2,3}; byte directions[4]={0,1,2,3};
long advantages[4]={0}; long advantages[4]={0};
if(me->strategy==IMITATE ){ if(me->strategy==IMITATE ){