Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Dec 2016 05:39:55 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r429480 - in head/games/openbor: . files
Message-ID:  <201612260539.uBQ5dteo021564@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Mon Dec 26 05:39:54 2016
New Revision: 429480
URL: https://svnweb.freebsd.org/changeset/ports/429480

Log:
  games/openbor: skip non-existing bor.pak

Added:
  head/games/openbor/files/patch-sdl_menu.c   (contents, props changed)
Modified:
  head/games/openbor/Makefile   (contents, props changed)

Modified: head/games/openbor/Makefile
==============================================================================
--- head/games/openbor/Makefile	Mon Dec 26 05:39:42 2016	(r429479)
+++ head/games/openbor/Makefile	Mon Dec 26 05:39:54 2016	(r429480)
@@ -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

Added: head/games/openbor/files/patch-sdl_menu.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/openbor/files/patch-sdl_menu.c	Mon Dec 26 05:39:54 2016	(r429480)
@@ -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)
+ 			{



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612260539.uBQ5dteo021564>