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:
parent
f424b385b4
commit
bba748811c
5
config.h
5
config.h
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user