Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Sep 2000 20:57:52 -0400 (EDT)
From:      eric@vangyzen.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/21634: worms(6) ignores -d option
Message-ID:  <200009290057.e8T0vqQ05242@hiro.vangyzen.net>

next in thread | raw e-mail | index | archive | help

>Number:         21634
>Category:       misc
>Synopsis:       worms(6) ignores -d option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 28 18:00:04 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Eric S. Van Gyzen
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
>Environment:

FreeBSD 4.1.1-STABLE i386
XFree86 3.3.6 xterm

>Description:

worms(6) does nothing productive with the -d argument.

>How-To-Repeat:

Compare the animation speed of the following:
% /usr/games/worms
% /usr/games/worms -d 1000
Note the lack of a difference.

>Fix:

Apply the following patch:

--- src/games/worms/worms.c.orig	Thu Sep 28 20:53:21 2000
+++ src/games/worms/worms.c	Thu Sep 28 20:53:54 2000
@@ -328,6 +328,8 @@
 				flavor[n % sizeof(flavor)]);
 			ref[w->ypos[h] = y][w->xpos[h] = x]++;
 		}
+		if (usleep(delay))
+			onsig(SIGTERM);
 	}
 }
 

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009290057.e8T0vqQ05242>