diff options
author | ache <ache@FreeBSD.org> | 1995-08-04 19:52:44 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-08-04 19:52:44 +0000 |
commit | 287d1f84d49f264573b6ff01eb6de87e49345896 (patch) | |
tree | 2464aa0e541b9437b080731c3182ae3add1d32cd /games/worms | |
parent | 7f093ebd6ef5a8e42e84a9f30c7f2788faaf7c73 (diff) | |
download | FreeBSD-src-287d1f84d49f264573b6ff01eb6de87e49345896.zip FreeBSD-src-287d1f84d49f264573b6ff01eb6de87e49345896.tar.gz |
Add missing ospeed initialization
Diffstat (limited to 'games/worms')
-rw-r--r-- | games/worms/worms.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <sys/types.h> - +#include <sgtty.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> @@ -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"); |