From f35b3b84af09838de8d7764440f4fa419ffb0f99 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 26 Dec 2010 09:01:36 +0000 Subject: [PATCH] - fixed: The player setup menu set the playerlass CVAR to the actual class name, not the display name as expected. SVN r3078 (trunk) --- src/menu/playermenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/playermenu.cpp b/src/menu/playermenu.cpp index 03300af140..de0292f7af 100644 --- a/src/menu/playermenu.cpp +++ b/src/menu/playermenu.cpp @@ -912,7 +912,7 @@ void DPlayerMenu::ClassChanged (FListMenuItem *li) players[consoleplayer].userinfo.PlayerClass = sel-1; PickPlayerClass(); - cvar_set ("playerclass", sel == 0 ? "Random" : PlayerClass->Type->TypeName); + cvar_set ("playerclass", sel == 0 ? "Random" : PlayerClass->Type->Meta.GetMetaString (APMETA_DisplayName)); UpdateSkins(); UpdateColorsets();