mirror of https://github.com/abakh/nbsdgames.git
fixing various warnings
This commit is contained in:
parent
f424b385b4
commit
bba748811c
5
config.h
5
config.h
|
@ -1,5 +1,6 @@
|
||||||
//for easier access
|
//for easier access
|
||||||
|
#ifndef CONFIG_H
|
||||||
|
#define CONFIG_H
|
||||||
//the default scorefiles
|
//the default scorefiles
|
||||||
#ifndef SCORES_DIR
|
#ifndef SCORES_DIR
|
||||||
#ifdef Plan9
|
#ifdef Plan9
|
||||||
|
@ -54,3 +55,5 @@ typedef signed char byte;
|
||||||
#ifndef M_PI //i don't know why tf, but it happens
|
#ifndef M_PI //i don't know why tf, but it happens
|
||||||
#define M_PI 3.1415
|
#define M_PI 3.1415
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif //CONFIG_H
|
||||||
|
|
|
@ -355,9 +355,7 @@ int main(int argc, char** argv){
|
||||||
#endif
|
#endif
|
||||||
srand(time(NULL)%UINT_MAX);
|
srand(time(NULL)%UINT_MAX);
|
||||||
byte board[len][wid];
|
byte board[len][wid];
|
||||||
int prex,prey;
|
|
||||||
bool halfspeed=0;
|
bool halfspeed=0;
|
||||||
const int constant=150*(80*24)/(len*wid);//that is added to score
|
|
||||||
initscr();
|
initscr();
|
||||||
noecho();
|
noecho();
|
||||||
cbreak();
|
cbreak();
|
||||||
|
@ -388,7 +386,7 @@ int main(int argc, char** argv){
|
||||||
memset(board,0,len*wid);
|
memset(board,0,len*wid);
|
||||||
put_stuff(board,20);
|
put_stuff(board,20);
|
||||||
|
|
||||||
int preinput,input;
|
int preinput=0,input=0;
|
||||||
while(1){
|
while(1){
|
||||||
erase();
|
erase();
|
||||||
logo();
|
logo();
|
||||||
|
|
|
@ -471,7 +471,6 @@ int main(void){
|
||||||
}
|
}
|
||||||
byte board[RLEN][RWID];
|
byte board[RLEN][RWID];
|
||||||
memset(board,0,RLEN*RWID);
|
memset(board,0,RLEN*RWID);
|
||||||
char result[70];
|
|
||||||
int input=0;
|
int input=0;
|
||||||
int prey,prex;
|
int prey,prex;
|
||||||
int cinred;
|
int cinred;
|
||||||
|
|
Loading…
Reference in New Issue