1
0
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:
Jens Staal 2020-06-12 22:41:13 +02:00
parent 0e5d4b7df4
commit baea9ad60c

View File

@ -32,7 +32,11 @@ compile with -lncurses
#endif
typedef signed char byte;
#ifndef Plan9
int len,wid,py,px;
#else
int py,px;
#endif
int immunity,flight,notrail;
byte direction;
long score;
@ -373,6 +377,7 @@ int main(int argc, char** argv){
autoset=1;
}
initscr();
#ifndef Plan9
if(autoset){
len=LINES-7;
if(len<MINLEN)
@ -386,6 +391,7 @@ int main(int argc, char** argv){
else if(wid>MAXWID)
wid=MAXWID;
}
#endif
srand(time(NULL)%UINT_MAX);
byte board[len][wid];
byte predirection;