mirror of
https://github.com/abakh/nbsdgames.git
synced 2025-02-02 15:07:27 -05:00
oops still some hacks for miketron
This commit is contained in:
parent
0e5d4b7df4
commit
baea9ad60c
@ -32,7 +32,11 @@ compile with -lncurses
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef signed char byte;
|
typedef signed char byte;
|
||||||
|
#ifndef Plan9
|
||||||
int len,wid,py,px;
|
int len,wid,py,px;
|
||||||
|
#else
|
||||||
|
int py,px;
|
||||||
|
#endif
|
||||||
int immunity,flight,notrail;
|
int immunity,flight,notrail;
|
||||||
byte direction;
|
byte direction;
|
||||||
long score;
|
long score;
|
||||||
@ -373,6 +377,7 @@ int main(int argc, char** argv){
|
|||||||
autoset=1;
|
autoset=1;
|
||||||
}
|
}
|
||||||
initscr();
|
initscr();
|
||||||
|
#ifndef Plan9
|
||||||
if(autoset){
|
if(autoset){
|
||||||
len=LINES-7;
|
len=LINES-7;
|
||||||
if(len<MINLEN)
|
if(len<MINLEN)
|
||||||
@ -386,6 +391,7 @@ int main(int argc, char** argv){
|
|||||||
else if(wid>MAXWID)
|
else if(wid>MAXWID)
|
||||||
wid=MAXWID;
|
wid=MAXWID;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
srand(time(NULL)%UINT_MAX);
|
srand(time(NULL)%UINT_MAX);
|
||||||
byte board[len][wid];
|
byte board[len][wid];
|
||||||
byte predirection;
|
byte predirection;
|
||||||
|
Loading…
Reference in New Issue
Block a user