projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to get the kernel printfs out before console starts reboot
[unix-history]
/
usr
/
src
/
games
/
sail
/
dr_2.c
diff --git
a/usr/src/games/sail/dr_2.c
b/usr/src/games/sail/dr_2.c
index
97c9583
..
36dbb50
100644
(file)
--- a/
usr/src/games/sail/dr_2.c
+++ b/
usr/src/games/sail/dr_2.c
@@
-1,6
+1,12
@@
+/*
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
#ifndef lint
#ifndef lint
-static char
*sccsid = "@(#)dr_2.c 2.5 84/01/19
";
-#endif
+static char
sccsid[] = "@(#)dr_2.c 5.1 (Berkeley) %G%
";
+#endif
not lint
#include "driver.h"
#include "driver.h"
@@
-174,10
+180,8
@@
register char *drift;
break;
}
}
break;
}
}
- if (!windspeed)
- *drift = 1;
if (!moved) {
if (!moved) {
- if (++*drift > 2) {
+ if (
windspeed != 0 &&
++*drift > 2) {
if (ship->specs->class >= 3 && !snagged(ship)
|| (turn & 1) == 0) {
*row -= dr[winddir];
if (ship->specs->class >= 3 && !snagged(ship)
|| (turn & 1) == 0) {
*row -= dr[winddir];