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
/
game.c
diff --git
a/usr/src/games/sail/game.c
b/usr/src/games/sail/game.c
index
e8de60b
..
ad356ae
100644
(file)
--- a/
usr/src/games/sail/game.c
+++ b/
usr/src/games/sail/game.c
@@
-1,20
+1,26
@@
+/*
+ * 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 = "@(#)game.c 1.4 83/07/20
";
-#endif
+static char
sccsid[] = "@(#)game.c 5.1 (Berkeley) %G%
";
+#endif
not lint
#include "externs.h"
#include "externs.h"
-maxturns(ship)
+maxturns(ship
, af
)
register struct ship *ship;
register struct ship *ship;
+char *af;
{
register int turns;
turns = ship->specs->ta;
{
register int turns;
turns = ship->specs->ta;
- if (
ship->file->drift > 1 && turns
) {
+ if (
*af = (ship->file->drift > 1 && turns)
) {
turns--;
if (ship->file->FS == 1)
turns = 0;
turns--;
if (ship->file->FS == 1)
turns = 0;
- turns |= 0100000;
}
return turns;
}
}
return turns;
}