aboutsummaryrefslogtreecommitdiffstats
path: root/games/freebsd-games
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/freebsd-games
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/freebsd-games')
-rw-r--r--games/freebsd-games/Makefile2
-rw-r--r--games/freebsd-games/files/patch-battlestar::init.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/games/freebsd-games/Makefile b/games/freebsd-games/Makefile
index eabbb0f0d8f6..146649d406bf 100644
--- a/games/freebsd-games/Makefile
+++ b/games/freebsd-games/Makefile
@@ -7,7 +7,7 @@
PORTNAME= freebsd-games
PORTVERSION= 5.1.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=markm
diff --git a/games/freebsd-games/files/patch-battlestar::init.c b/games/freebsd-games/files/patch-battlestar::init.c
new file mode 100644
index 000000000000..077107c3e5aa
--- /dev/null
+++ b/games/freebsd-games/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();