aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2016-12-26 05:39:54 +0000
committerJan Beich <jbeich@FreeBSD.org>2016-12-26 05:39:54 +0000
commitb4e182a0c7290e601831b79012cf220df2fe7f15 (patch)
treea2fbcd6ddd7c58ba6348ca5900fad1cd54b7eb8a /games
parent978b4da2edc4321827a69b39adf7c6484bacc2a6 (diff)
downloadports-b4e182a0c7290e601831b79012cf220df2fe7f15.tar.gz
ports-b4e182a0c7290e601831b79012cf220df2fe7f15.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/openbor/Makefile2
-rw-r--r--games/openbor/files/patch-sdl_menu.c13
2 files changed, 14 insertions, 1 deletions
diff --git a/games/openbor/Makefile b/games/openbor/Makefile
index ecb08fad05ec..6ec5cbd8a7bc 100644
--- a/games/openbor/Makefile
+++ b/games/openbor/Makefile
@@ -2,7 +2,7 @@
PORTNAME= openbor
PORTVERSION= 3.0.r4420
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= LOCAL/jbeich \
https://svn.code.sf.net/p/${PORTNAME}/engine/engine/:svn
diff --git a/games/openbor/files/patch-sdl_menu.c b/games/openbor/files/patch-sdl_menu.c
new file mode 100644
index 000000000000..023fb8417e64
--- /dev/null
+++ b/games/openbor/files/patch-sdl_menu.c
@@ -0,0 +1,13 @@
+Don't crash with empty Paks/ directory.
+
+--- sdl/menu.c.orig 2015-04-18 21:21:56 UTC
++++ sdl/menu.c
+@@ -747,7 +747,7 @@ void Menu()
+ }
+ freeAllLogs();
+ termMenu();
+- if(ctrl == 2)
++ if(dListTotal == 0 || ctrl == 2)
+ {
+ if (filelist)
+ {