From beba43cffc00eaac196f66d8b39f0d88afc7b87f Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Fri, 14 Aug 2020 21:13:15 -0700
Subject: [PATCH] Add a menu option for showjoinaddress

I also had to make the "alphaKey" UINT16. Hopefully nothing breaks!
---
 src/m_menu.c | 3 +++
 src/m_menu.h | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/m_menu.c b/src/m_menu.c
index f0f4e85ae..92dfe8ff4 100644
--- a/src/m_menu.c
+++ b/src/m_menu.c
@@ -1663,8 +1663,11 @@ static menuitem_t OP_ServerOptionsMenu[] =
 #ifndef NONET
 	{IT_HEADER, NULL, "Advanced", NULL, 225},
 	{IT_STRING | IT_CVAR | IT_CV_STRING, NULL, "Master server",        &cv_masterserver,       231},
+
 	{IT_STRING | IT_CVAR,    NULL, "Join delay",                       &cv_joindelay,          246},
 	{IT_STRING | IT_CVAR,    NULL, "Attempts to resynchronise",        &cv_resynchattempts,    251},
+
+	{IT_STRING | IT_CVAR,    NULL, "Show IP Address of Joiners",       &cv_showjoinaddress,    256},
 #endif
 };
 
diff --git a/src/m_menu.h b/src/m_menu.h
index 88c06ae6f..0465128ef 100644
--- a/src/m_menu.h
+++ b/src/m_menu.h
@@ -327,7 +327,7 @@ typedef struct menuitem_s
 	void *itemaction;
 
 	// hotkey in menu or y of the item
-	UINT8 alphaKey;
+	UINT16 alphaKey;
 } menuitem_t;
 
 extern menuitem_t MP_RoomMenu[];
-- 
GitLab