diff options
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r-- | src/cgame/cg_ents.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c index e8a217db..54409aee 100644 --- a/src/cgame/cg_ents.c +++ b/src/cgame/cg_ents.c @@ -811,6 +811,26 @@ static void CG_LightFlare( centity_t *cent ) /* ========================= +CG_LinkLocation +========================= +*/ +void CG_LinkLocation( centity_t *cent ) +{ + centity_t *tempent; + + for( tempent = cg.locationHead; tempent; tempent = tempent->nextLocation ) + { + if( tempent == cent ) + return; + } + + cent->nextLocation = cg.locationHead; + cg.locationHead = cent; + +} + +/* +========================= CG_AdjustPositionForMover Also called by client movement prediction code @@ -1090,6 +1110,10 @@ static void CG_AddCEntity( centity_t *cent ) case ET_LIGHTFLARE: CG_LightFlare( cent ); break; + + case ET_LOCATION: + CG_LinkLocation( cent ); + break; } } |