diff options
author | 2002-08-09 09:54:30 +0000 | |
---|---|---|
committer | 2002-08-09 09:54:30 +0000 | |
commit | 7a13a1fbc955af720039a9763daf663b9b3a2fd5 (patch) | |
tree | 64698981fed6306c8000789a9234a76ae1c7a836 | |
parent | grammar nits (diff) | |
download | wireguard-openbsd-7a13a1fbc955af720039a9763daf663b9b3a2fd5.tar.xz wireguard-openbsd-7a13a1fbc955af720039a9763daf663b9b3a2fd5.zip |
Only target in the playing field when using mouse.
-rw-r--r-- | games/bs/bs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/bs/bs.c b/games/bs/bs.c index 30cee3aa2a2..7e0e4b4ec46 100644 --- a/games/bs/bs.c +++ b/games/bs/bs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bs.c,v 1.16 2002/08/09 08:42:30 pjanzen Exp $ */ +/* $OpenBSD: bs.c,v 1.17 2002/08/09 09:54:30 pjanzen Exp $ */ /* * bs.c - original author: Bruce Holloway * salvo option by: Chuck A DeGaul @@ -11,7 +11,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: bs.c,v 1.16 2002/08/09 08:42:30 pjanzen Exp $"; +static const char rcsid[] = "$OpenBSD: bs.c,v 1.17 2002/08/09 09:54:30 pjanzen Exp $"; #endif /* #define _POSIX_SOURCE */ /* ( random() ) */ @@ -634,8 +634,8 @@ static int getcoord(int atcpu) getmouse(&myevent); if (atcpu - && myevent.y >= CY(0) && myevent.y <= CY(BDEPTH) - && myevent.x >= CX(0) && myevent.x <= CX(BDEPTH)) + && myevent.y >= CY(0) && myevent.y < CY(BDEPTH) + && myevent.x >= CX(0) && myevent.x < CX(BWIDTH)) { curx = CXINV(myevent.x); cury = CYINV(myevent.y); |