summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-03-22 05:09:05 +0000
committerTim Angus <tim@ngus.net>2002-03-22 05:09:05 +0000
commitb32f0fa9fd74a9cfa65f1197898b59142def161d (patch)
tree1ed731a11e57f418a78bc8f3e3260e621a6d1e21 /src/game/g_main.c
parenteaeff9ea91eae4755453396aafe30e6946c81262 (diff)
Hud per class specified in bg_misc.c. Skin entry in class db now honoured
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 0561b484..112f1854 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -312,13 +312,17 @@ G_RegisterPlayerModels
*/
void G_RegisterPlayerModels( void )
{
- char *s, *class;
+ char buffer[ MAX_INFO_STRING ];
+ char *s;
int i;
for( i = PCL_NONE + 1; i < PCL_NUM_CLASSES; i++ )
{
- class = BG_FindModelNameForClass( i );
- s = va("n\\%s%d\\t\\%i\\model\\%s\\hmodel\\%s\\g_redteam\\%s\\g_blueteam\\%s\\c1\\%s\\hc\\%i\\w\\%i\\l\\%i\\tt\\%d\\tl\\%d", "precache", i, 0, class, class, 0, 0, "7", 100, 0, 0, 0, 0);
+ Com_sprintf( buffer, MAX_INFO_STRING, "%s/%s",
+ BG_FindModelNameForClass( i ), BG_FindSkinNameForClass( i ) );
+ s = va( "n\\%s%d\\t\\%i\\model\\%s\\hmodel\\%s\\g_redteam\\%s\\"
+ "g_blueteam\\%s\\c1\\%s\\hc\\%i\\w\\%i\\l\\%i\\tt\\%d\\tl\\%d",
+ "precache", i, 0, buffer, buffer, 0, 0, "7", 100, 0, 0, 0, 0);
trap_SetConfigstring( CS_PRECACHES + i, s );
}