mirror of
https://github.com/ioquake/ioq3.git
synced 2025-02-22 19:41:32 +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
|
// model
|
||||||
trap_Cvar_VariableStringBuffer( "model", s_playermodel.modelskin, 64 );
|
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
|
// find model in our list
|
||||||
for (i=0; i<s_playermodel.nummodels; i++)
|
for (i=0; i<s_playermodel.nummodels; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue