git: dfc806ae70f1 - main - games/omega: Fix inventory display crash and take maintainership

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Sun, 12 Dec 2021 07:55:57 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dfc806ae70f1cd36860b6b90e4185d2198446f7a

commit dfc806ae70f1cd36860b6b90e4185d2198446f7a
Author:     Alex <r7st.guru@gmail.com>
AuthorDate: 2021-12-12 07:53:57 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2021-12-12 07:55:44 +0000

    games/omega: Fix inventory display crash and take maintainership
    
    PR:             259786
    Reported by:    Alex <r7st.guru@gmail.com> (new maintainer)
    Approved by:    portmgr (blanket: bugfix, unmaintained port)
    MFH:            2021Q4
---
 games/omega/Makefile          |  3 ++-
 games/omega/files/patch-inv.c | 14 ++++++++++++--
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/games/omega/Makefile b/games/omega/Makefile
index a77f6a43b0e1..89c94899c7c2 100644
--- a/games/omega/Makefile
+++ b/games/omega/Makefile
@@ -2,11 +2,12 @@
 
 PORTNAME=	omega
 PORTVERSION=	0.90.4
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	http://www.alcyone.com/binaries/omega/
 DISTNAME=	${PORTNAME}-${PORTVERSION}-src
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	r7st.guru@gmail.com
 COMMENT=	Complex rogue-style game of dungeon exploration
 
 USES=		gmake ncurses
diff --git a/games/omega/files/patch-inv.c b/games/omega/files/patch-inv.c
index 932cae631cd6..8403f5f9a264 100644
--- a/games/omega/files/patch-inv.c
+++ b/games/omega/files/patch-inv.c
@@ -1,5 +1,5 @@
---- inv.c	Fri Jan  1 03:08:33 1999
-+++ /home/andy/tmp/wrk/inv.c	Fri May 14 20:28:52 1999
+--- inv.c.orig	2021-11-11 18:12:35.355855000 -0500
++++ inv.c	2021-11-11 18:13:11.096005000 -0500
 @@ -8,7 +8,11 @@
  # ifdef AMIGA
  #  include <curses210.h>
@@ -13,3 +13,13 @@
  # endif
  #endif
  
+@@ -840,8 +844,7 @@
+       use_pack_item(response - 'a',slot);
+     }
+   }
+-  if ( optionp(TOPINV) )
+-    display_possessions();
++  display_possessions();
+   return slot;
+ }
+