Bug 5035 - Automatically selecting player model in q3_ui does not work if skin is not specified, patch by Zack Middleton

This commit is contained in:
Thilo Schulz 2011-06-11 15:26:36 +00:00
parent b96c1c8279
commit 8ec565b58e

View file

@ -469,6 +469,11 @@ static void PlayerModel_SetMenuItems( void )
// model
trap_Cvar_VariableStringBuffer( "model", s_playermodel.modelskin, 64 );
// use default skin if none is set
if (!strchr(s_playermodel.modelskin, '/')) {
Q_strcat(s_playermodel.modelskin, 64, "/default");
}
// find model in our list
for (i=0; i<s_playermodel.nummodels; i++)
{