summaryrefslogtreecommitdiff
path: root/src/cgame/cg_players.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_players.c')
-rw-r--r--src/cgame/cg_players.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c
index 68fd1d71..27e93d85 100644
--- a/src/cgame/cg_players.c
+++ b/src/cgame/cg_players.c
@@ -501,14 +501,16 @@ static int CG_GetCorpseNum( int pclass ) {
modelName = BG_FindModelNameForClass( pclass );
- for ( i = 0 ; i < cgs.maxclients ; i++ ) {
+ for ( i = 0 ; i < MAX_CLIENTS; i++ )
+ {
match = &cgs.corpseinfo[ i ];
- if ( !match->infoValid ) {
+ Com_Printf( "%d: %s %s\n", i, modelName, match->modelName );
+ if ( !match->infoValid )
continue;
- }
- if ( match->deferred ) {
+
+ if ( match->deferred )
continue;
- }
+
if ( !Q_stricmp( modelName, match->modelName )
/*&& !Q_stricmp( modelName, match->skinName )*/ ) {
// this clientinfo is identical, so use it's handles
@@ -620,7 +622,7 @@ void CG_PrecacheClientInfo( int clientNum ) {
const char *v;
char *slash;
- ci = &cgs.corpseinfo[ clientNum - MAX_CLIENTS ];
+ ci = &cgs.corpseinfo[ clientNum - MAX_CLIENTS - 1 ];
//CG_Printf( "%d %d\n", clientNum, (clientNum - MAX_CLIENTS ) );