aboutsummaryrefslogtreecommitdiffstats
path: root/games/bsdgames/files
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2004-01-14 01:25:10 +0800
committerroam <roam@FreeBSD.org>2004-01-14 01:25:10 +0800
commit3ffb3898353797997e628ed2466610692f29dcff (patch)
tree506dc0e56e3b00e68baf69e408602203a2216d6e /games/bsdgames/files
parent989060bd8e0ff90ddee39fc0e997022c390ada46 (diff)
downloadfreebsd-ports-gnome-3ffb3898353797997e628ed2466610692f29dcff.tar.gz
freebsd-ports-gnome-3ffb3898353797997e628ed2466610692f29dcff.tar.zst
freebsd-ports-gnome-3ffb3898353797997e628ed2466610692f29dcff.zip
Fix the inverted logic in battlestar's initialization, which led to
a coredump shortly after starting a game from the beginning.
Diffstat (limited to 'games/bsdgames/files')
-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();