SCCS-vsn: games/worm/worm.c 4.2
#define when break;case
#define otherwise break;default
#define CNTRL(p) ('p'-'A'+1)
#define when break;case
#define otherwise break;default
#define CNTRL(p) ('p'-'A'+1)
+#ifndef attron
+# define baudrate() _tty.sg_ospeed
+#endif
} *head, *tail, goody;
int growing = 0;
int running = 0;
} *head, *tail, goody;
int growing = 0;
int running = 0;
int score = 0;
int start_len = LENGTH;
char lastch;
int score = 0;
int start_len = LENGTH;
char lastch;
initscr();
crmode();
noecho();
initscr();
crmode();
noecho();
+ slow = (baudrate() <= B1200);
clear();
stw = newwin(1, COLS-1, 0, 0);
tv = newwin(LINES-1, COLS-1, 1, 0);
clear();
stw = newwin(1, COLS-1, 0, 0);
tv = newwin(LINES-1, COLS-1, 1, 0);
}
tail = np;
tail->prev = NULL;
}
tail = np;
tail->prev = NULL;
nh->x = x;
display(nh, HEAD);
head = nh;
nh->x = x;
display(nh, HEAD);
head = nh;
- wrefresh(tv);
- if (! running) alarm(1);
+ if (!(slow && running))
+ wrefresh(tv);
+ if (!running)
+ alarm(1);