[iortcw] 477/497: All: Remove unused menu item hacks

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 0d636da4751c11ab467bcfc178fcbaa21b4a8608
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Sun Dec 13 05:14:38 2015 -0500

    All: Remove unused menu item hacks
---
 MP/code/ui/ui_shared.c | 14 --------------
 SP/code/ui/ui_shared.c | 26 +-------------------------
 2 files changed, 1 insertion(+), 39 deletions(-)

diff --git a/MP/code/ui/ui_shared.c b/MP/code/ui/ui_shared.c
index c4cab3c..0dae2a3 100644
--- a/MP/code/ui/ui_shared.c
+++ b/MP/code/ui/ui_shared.c
@@ -5848,20 +5848,6 @@ static void Item_ApplyHacks( itemDef_t *item ) {
                        editField->maxChars = 48;
                }
        }
-
-	if ( item->type == ITEM_TYPE_EDITFIELD && item->cvar && ( !Q_stricmp( item->cvar, "ui_Name" ) || !Q_stricmp( item->cvar, "ui_findplayer" ) ) ) {
-		editFieldDef_t *editField = (editFieldDef_t *)item->typeData;
-
-		// enough to hold a full player name
-		if ( editField->maxChars < MAX_NAME_LENGTH ) {
-			if ( editField->maxPaintChars > editField->maxChars ) {
-				editField->maxPaintChars = editField->maxChars;
-			}
-
-			Com_Printf( "Extended player name field using cvar %s to %d characters\n", item->cvar, MAX_NAME_LENGTH );
-			editField->maxChars = MAX_NAME_LENGTH;
-		}
-	}
 }
 
 /*
diff --git a/SP/code/ui/ui_shared.c b/SP/code/ui/ui_shared.c
index 012c147..ed0efd1 100644
--- a/SP/code/ui/ui_shared.c
+++ b/SP/code/ui/ui_shared.c
@@ -5761,31 +5761,7 @@ Hacks to fix issues with menu scripts
 ===============
 */
 static void Item_ApplyHacks( itemDef_t *item ) {
-
-       // Fix length of favorite address in createfavorite.menu
-       if ( item->type == ITEM_TYPE_EDITFIELD && item->cvar && !Q_stricmp( item->cvar, "ui_favoriteAddress" ) ) {
-               editFieldDef_t *editField = (editFieldDef_t *)item->typeData;
-
-               // enough to hold an IPv6 address plus null
-               if ( editField->maxChars < 48 ) {
-                       Com_Printf( "Extended create favorite address edit field length to hold an IPv6 address\n" );
-                       editField->maxChars = 48;
-               }
-       }
-
-	if ( item->type == ITEM_TYPE_EDITFIELD && item->cvar && ( !Q_stricmp( item->cvar, "ui_Name" ) || !Q_stricmp( item->cvar, "ui_findplayer" ) ) ) {
-		editFieldDef_t *editField = (editFieldDef_t *)item->typeData;
-
-		// enough to hold a full player name
-		if ( editField->maxChars < MAX_NAME_LENGTH ) {
-			if ( editField->maxPaintChars > editField->maxChars ) {
-				editField->maxPaintChars = editField->maxChars;
-			}
-
-			Com_Printf( "Extended player name field using cvar %s to %d characters\n", item->cvar, MAX_NAME_LENGTH );
-			editField->maxChars = MAX_NAME_LENGTH;
-		}
-	}
+	// Stub - Not used in SP
 }
 
 /*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list