[quake3-commits] r2015 - trunk/code/q3_ui

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Jun 11 11:26:36 EDT 2011


Author: thilo
Date: 2011-06-11 11:26:36 -0400 (Sat, 11 Jun 2011)
New Revision: 2015

Modified:
   trunk/code/q3_ui/ui_playermodel.c
Log:
Bug 5035 - Automatically selecting player model in q3_ui does not work if skin is not specified, patch by Zack Middleton


Modified: trunk/code/q3_ui/ui_playermodel.c
===================================================================
--- trunk/code/q3_ui/ui_playermodel.c	2011-06-11 15:16:25 UTC (rev 2014)
+++ trunk/code/q3_ui/ui_playermodel.c	2011-06-11 15:26:36 UTC (rev 2015)
@@ -469,6 +469,11 @@
 	// 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++)
 	{



More information about the quake3-commits mailing list