- fixed: DPlayerMenu::ClassChanged needs to call PickPlayerClass before setting the playerclass CVAR.

SVN r2806 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-17 08:19:02 +00:00
parent ae3c60454f
commit fa062aa141

View file

@ -899,11 +899,11 @@ void DPlayerMenu::ClassChanged (FListMenuItem *li)
if (li->GetValue(0, &sel)) if (li->GetValue(0, &sel))
{ {
players[consoleplayer].userinfo.PlayerClass = sel-1; players[consoleplayer].userinfo.PlayerClass = sel-1;
PickPlayerClass();
cvar_set ("playerclass", cvar_set ("playerclass",
sel == 0 ? "Random" : PlayerClass->Type->Meta.GetMetaString (APMETA_DisplayName)); sel == 0 ? "Random" : PlayerClass->Type->Meta.GetMetaString (APMETA_DisplayName));
PickPlayerClass();
UpdateSkins(); UpdateSkins();
UpdateColorsets(); UpdateColorsets();
UpdateTranslation(); UpdateTranslation();