- try to encapsulate access to the player class's display name for printing purposes.

SVN r2839 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-21 09:43:54 +00:00
commit 583cbd49a6
6 changed files with 24 additions and 10 deletions

View file

@ -684,7 +684,7 @@ class CommandDrawString : public SBarInfoCommand
if(statusBar->CPlayer->userinfo.PlayerClass != cache)
{
cache = statusBar->CPlayer->userinfo.PlayerClass;
str = statusBar->CPlayer->cls->Meta.GetMetaString(APMETA_DisplayName);
str = GetPrintableDisplayName(statusBar->CPlayer->cls);
RealignString();
}
break;