Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/games/worms Pullup rev 1.15 (requested by hubertf in ti...
details: https://anonhg.NetBSD.org/src/rev/128a0f745a0c
branches: netbsd-2-0
changeset: 560153:128a0f745a0c
user: jmc <jmc%NetBSD.org@localhost>
date: Tue Mar 30 06:00:15 2004 +0000
description:
Pullup rev 1.15 (requested by hubertf in ticket #13)
Properly handle -d 1000.
diffstat:
games/worms/worms.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 758ca5d017c8 -r 128a0f745a0c games/worms/worms.c
--- a/games/worms/worms.c Tue Mar 30 05:58:55 2004 +0000
+++ b/games/worms/worms.c Tue Mar 30 06:00:15 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: worms.c,v 1.14 2004/02/08 22:21:57 jsm Exp $ */
+/* $NetBSD: worms.c,v 1.14.2.1 2004/03/30 06:00:15 jmc Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: worms.c,v 1.14 2004/02/08 22:21:57 jsm Exp $");
+__RCSID("$NetBSD: worms.c,v 1.14.2.1 2004/03/30 06:00:15 jmc Exp $");
#endif
#endif /* not lint */
@@ -292,7 +292,12 @@
endwin();
exit(0);
}
- if (delay) usleep(delay);
+ if (delay) {
+ if (delay % 1000000 != 0)
+ usleep(delay % 1000000);
+ if (delay >= 1000000)
+ sleep(delay / 1000000);
+ }
for (n = 0, w = &worm[0]; n < number; n++, w++) {
if ((x = w->xpos[h = w->head]) < 0) {
mvaddch(y = w->ypos[h] = bottom,
Home |
Main Index |
Thread Index |
Old Index