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
modern syntax for inits. When ANSI cpp comes will need more work.
[unix-history]
/
usr
/
src
/
games
/
trek
/
abandon.c
diff --git
a/usr/src/games/trek/abandon.c
b/usr/src/games/trek/abandon.c
index
ae89396
..
f57d0f7
100644
(file)
--- a/
usr/src/games/trek/abandon.c
+++ b/
usr/src/games/trek/abandon.c
@@
-1,5
+1,11
@@
+/*
+ * Copyright (c) 1980 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[] = "@(#)abandon.c
4.1 (Berkeley)
%G%";
+static char sccsid[] = "@(#)abandon.c
5.1 (Berkeley)
%G%";
#endif not lint
# include "trek.h"
#endif not lint
# include "trek.h"
@@
-45,11
+51,11
@@
abandon()
printf("Officers escape in shuttlecraft\n");
/* decide on fate of crew */
q = &Quad[Ship.quadx][Ship.quady];
printf("Officers escape in shuttlecraft\n");
/* decide on fate of crew */
q = &Quad[Ship.quadx][Ship.quady];
- if (q->systemname == 0 || damaged(XPORTER))
+ if (q->
q
systemname == 0 || damaged(XPORTER))
{
printf("Entire crew of %d left to die in outer space\n",
Ship.crew);
{
printf("Entire crew of %d left to die in outer space\n",
Ship.crew);
- Game.deaths
=+
Ship.crew;
+ Game.deaths
+=
Ship.crew;
}
else
{
}
else
{
@@
-89,8
+95,8
@@
abandon()
{
if (Param.damprob[j] != 0)
{
{
if (Param.damprob[j] != 0)
{
- Param.damprob[j]
=+
1;
- i
=- 1
;
+ Param.damprob[j]
+=
1;
+ i
--
;
if (i <= 0)
break;
}
if (i <= 0)
break;
}