From 287d1f84d49f264573b6ff01eb6de87e49345896 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 4 Aug 1995 19:52:44 +0000 Subject: Add missing ospeed initialization --- games/worms/worms.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'games/worms') diff --git a/games/worms/worms.c b/games/worms/worms.c index 4e0b7d4..978a02d 100644 --- a/games/worms/worms.c +++ b/games/worms/worms.c @@ -59,7 +59,7 @@ static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93"; * */ #include - +#include #include #include #include @@ -198,6 +198,8 @@ main(argc, argv) char *AL, *BC, *CM, *EI, *HO, *IC, *IM, *IP, *SR; char *field, tcb[100], *mp; long random(); + struct sgttyb tt; + extern short ospeed; length = 16; number = 3; @@ -246,6 +248,8 @@ main(argc, argv) exit(1); } tcp = tcb; + if (gtty(1, &tt) == 0) + ospeed = tt.sg_ospeed; if (!(CM = tgetstr("cm", &tcp))) { (void)fprintf(stderr, "worms: terminal incapable of cursor motion.\n"); -- cgit v1.1