mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
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:
parent
b96c1c8279
commit
8ec565b58e
1 changed files with 5 additions and 0 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue