summaryrefslogtreecommitdiff
path: root/games/bsdgames/files/patch-battlestar::init.c
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2004-01-13 17:25:10 +0000
committerPeter Pentchev <roam@FreeBSD.org>2004-01-13 17:25:10 +0000
commit9d0e52735c4749f8106455cf93f7c370ee857be6 (patch)
tree2b1f019edaf4f28685cdfdc690253f6af5842d24 /games/bsdgames/files/patch-battlestar::init.c
parentOBE by REINPLACE action in pre-configure. (diff)
Fix the inverted logic in battlestar's initialization, which led to
a coredump shortly after starting a game from the beginning.
Notes
Notes: svn path=/head/; revision=98089
Diffstat (limited to 'games/bsdgames/files/patch-battlestar::init.c')
-rw-r--r--games/bsdgames/files/patch-battlestar::init.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/bsdgames/files/patch-battlestar::init.c b/games/bsdgames/files/patch-battlestar::init.c
new file mode 100644
index 000000000000..077107c3e5aa
--- /dev/null
+++ b/games/bsdgames/files/patch-battlestar::init.c
@@ -0,0 +1,11 @@
+--- battlestar/init.c.old Mon Dec 15 17:48:41 2003
++++ battlestar/init.c Mon Dec 15 17:48:54 2003
+@@ -62,7 +62,7 @@
+ puts("Admiral D.W. Riggle\n");
+ srandomdev();
+ getutmp(uname);
+- if (startup)
++ if (startup == NULL)
+ location = dayfile;
+ wiz = wizard(uname);
+ wordinit();