diff options
author | Tim Angus <tim@ngus.net> | 2003-08-31 15:21:10 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-08-31 15:21:10 +0000 |
commit | 482687d52b99cd85fc6d4545a6b007504dceb7f3 (patch) | |
tree | 4660eefd56d00cd790b2f53f63b9014abf1cfac5 /src/cgame/cg_players.c | |
parent | a82ea16a054bc0a4e138cbe617dbbd673e603b35 (diff) |
* Misspelling of function prototype for BG_FindAccelerationForClass cause much
weirdness -- but how did it ever compile?!
* Minor tidy ups to model loading stuff
Diffstat (limited to 'src/cgame/cg_players.c')
-rw-r--r-- | src/cgame/cg_players.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c index 8ce592b1..cfb015ac 100644 --- a/src/cgame/cg_players.c +++ b/src/cgame/cg_players.c @@ -667,7 +667,7 @@ static qboolean CG_ScanForExistingClientInfo( clientInfo_t *ci ) CG_PrecacheClientInfo ====================== */ -void CG_PrecacheClientInfo( pClass_t class, char *model, char *skin, char *headModel, char *headSkin ) +void CG_PrecacheClientInfo( pClass_t class, char *model, char *skin ) { clientInfo_t *ci; clientInfo_t newInfo; @@ -681,23 +681,19 @@ void CG_PrecacheClientInfo( pClass_t class, char *model, char *skin, char *headM // model Q_strncpyz( newInfo.modelName, model, sizeof( newInfo.modelName ) ); + Q_strncpyz( newInfo.headModelName, model, sizeof( newInfo.headModelName ) ); // modelName didn not include a skin name if( !skin ) + { Q_strncpyz( newInfo.skinName, "default", sizeof( newInfo.skinName ) ); - else - Q_strncpyz( newInfo.skinName, skin, sizeof( newInfo.skinName ) ); - - //CG_Printf( "PCI: %s\n", v ); - - // head model - Q_strncpyz( newInfo.headModelName, headModel, sizeof( newInfo.headModelName ) ); - - // modelName didn not include a skin name - if( !headSkin ) Q_strncpyz( newInfo.headSkinName, "default", sizeof( newInfo.headSkinName ) ); + } else - Q_strncpyz( newInfo.headSkinName, headSkin, sizeof( newInfo.headSkinName ) ); + { + Q_strncpyz( newInfo.skinName, skin, sizeof( newInfo.skinName ) ); + Q_strncpyz( newInfo.headSkinName, skin, sizeof( newInfo.headSkinName ) ); + } newInfo.infoValid = qtrue; |