1
0
mirror of https://github.com/abakh/nbsdgames.git synced 2024-12-04 14:46:22 -05:00

fixing various warnings

This commit is contained in:
Your Name 2021-07-18 22:33:20 +00:00
parent f424b385b4
commit bba748811c
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,6 @@
//for easier access
#ifndef CONFIG_H
#define CONFIG_H
//the default scorefiles
#ifndef SCORES_DIR
#ifdef Plan9
@ -54,3 +55,5 @@ typedef signed char byte;
#ifndef M_PI //i don't know why tf, but it happens
#define M_PI 3.1415
#endif
#endif //CONFIG_H

View File

@ -355,9 +355,7 @@ int main(int argc, char** argv){
#endif
srand(time(NULL)%UINT_MAX);
byte board[len][wid];
int prex,prey;
bool halfspeed=0;
const int constant=150*(80*24)/(len*wid);//that is added to score
initscr();
noecho();
cbreak();
@ -388,7 +386,7 @@ int main(int argc, char** argv){
memset(board,0,len*wid);
put_stuff(board,20);
int preinput,input;
int preinput=0,input=0;
while(1){
erase();
logo();

View File

@ -471,7 +471,6 @@ int main(void){
}
byte board[RLEN][RWID];
memset(board,0,RLEN*RWID);
char result[70];
int input=0;
int prey,prex;
int cinred;