From bc0ffc4185d4c5c42e10b488b925cf2aec2be230 Mon Sep 17 00:00:00 2001
From: Christoph Oelckers <coelckers@users.noreply.github.com>
Date: Tue, 28 Feb 2017 14:33:46 +0100
Subject: [PATCH] - removed access to the PlayerPawn's DisplayName variable.
 This one has implicit semantics, so wherever a displayable name is needed
 GetPrintableDisplayName should be called instead to allow later refactoring
 of the internal handling.

---
 src/p_user.cpp                          | 2 --
 wadsrc/static/zscript/shared/player.txt | 1 -
 2 files changed, 3 deletions(-)

diff --git a/src/p_user.cpp b/src/p_user.cpp
index 30db0a2711..0f8954e56e 100644
--- a/src/p_user.cpp
+++ b/src/p_user.cpp
@@ -3333,8 +3333,6 @@ DEFINE_FIELD(APlayerPawn, HexenArmor)
 DEFINE_FIELD(APlayerPawn, ColorRangeStart)
 DEFINE_FIELD(APlayerPawn, ColorRangeEnd)
 
-DEFINE_FIELD(PClassActor, DisplayName)
-
 DEFINE_FIELD_X(PlayerInfo, player_t, mo)
 DEFINE_FIELD_X(PlayerInfo, player_t, playerstate)
 DEFINE_FIELD_X(PlayerInfo, player_t, original_oldbuttons)
diff --git a/wadsrc/static/zscript/shared/player.txt b/wadsrc/static/zscript/shared/player.txt
index 14347a41c9..2e7bda8f65 100644
--- a/wadsrc/static/zscript/shared/player.txt
+++ b/wadsrc/static/zscript/shared/player.txt
@@ -34,7 +34,6 @@ class PlayerPawn : Actor native
 	native double		ViewBob;				// [SP] ViewBob Multiplier
 	native double		FullHeight;
 
-	native meta String 	DisplayName;	// Display name (used in menus, etc.)
 	meta Name HealingRadiusType;
 	meta Name InvulMode;