From baea9ad60c28bc80ebd7650e3edb6578a2f6dfa0 Mon Sep 17 00:00:00 2001 From: Jens Staal Date: Fri, 12 Jun 2020 22:41:13 +0200 Subject: [PATCH] oops still some hacks for miketron --- sources/miketron.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sources/miketron.c b/sources/miketron.c index 70e7c8b..096ffeb 100644 --- a/sources/miketron.c +++ b/sources/miketron.c @@ -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(lenMAXWID) wid=MAXWID; } +#endif srand(time(NULL)%UINT_MAX); byte board[len][wid]; byte predirection;