summaryrefslogtreecommitdiff
path: root/src/cgame/cg_ents.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r--src/cgame/cg_ents.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c
index 869eb8c6..b56a1a40 100644
--- a/src/cgame/cg_ents.c
+++ b/src/cgame/cg_ents.c
@@ -877,6 +877,8 @@ static void CG_CEntityPVSEnter( centity_t *cent )
cent->jetPackState = JPS_OFF;
cent->buildablePS = NULL;
+
+ cent->entityPS = NULL;
}
@@ -962,6 +964,10 @@ static void CG_AddCEntity( centity_t *cent )
CG_Spriter( cent );
break;
+ case ET_PARTICLE_SYSTEM:
+ CG_ParticleSystemEntity( cent );
+ break;
+
case ET_ANIMMAPOBJ:
CG_animMapObj( cent );
break;
@@ -1079,7 +1085,6 @@ void CG_AddPacketEntities( void )
{
cent = &cg_entities[ cg.snap->entities[ num ].number ];
cent->valid = qtrue;
- CG_AddCEntity( cent );
}
for( num = 0; num < MAX_GENTITIES; num++ )
@@ -1094,5 +1099,12 @@ void CG_AddPacketEntities( void )
cent->oldValid = cent->valid;
}
+ // add each entity sent over by the server
+ for( num = 0; num < cg.snap->numEntities; num++ )
+ {
+ cent = &cg_entities[ cg.snap->entities[ num ].number ];
+ CG_AddCEntity( cent );
+ }
+
}