1
0
mirror of https://github.com/abakh/nbsdgames.git synced 2024-06-08 17:20:41 +00: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)
mvprintw(0,0,"Screen size should at least be 80*15 characters");*/
attron(colors[0]);
byte y,x;
filled_rect(0,0,12,80);
byte y;
mvprintw(0,0," __ Hooks:%d",hooknum);
mvprintw(1,0,"|__ Score:%d",score);
mvprintw(2,0,"| ISHER");
@ -190,7 +190,6 @@ byte save_score(void){
void show_scores(byte playerrank){
byte y,x;
attron(colors[3]);
filled_rect(0,0,LEN,WID);
green_border();
@ -368,7 +367,6 @@ int main(void){
flushinp();
}
}
End:
flushinp();
nocbreak();
cbreak();

View File

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