Skip to content

Commit

Permalink
improved some things in local ents
Browse files Browse the repository at this point in the history
  • Loading branch information
entdark committed Aug 25, 2015
1 parent ffc5637 commit 1c2856b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CODE-mp/cgame/cg_localents.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "cg_local.h"

#define MAX_LOCAL_ENTITIES 512
#define MAX_LOCAL_ENTITIES 2048 //ent: Raz: was 512
localEntity_t cg_localEntities[MAX_LOCAL_ENTITIES];
localEntity_t cg_activeLocalEntities; // double linked list
localEntity_t *cg_freeLocalEntities; // single linked list
Expand Down Expand Up @@ -496,7 +496,7 @@ static void CG_AddFadeScaleModel( localEntity_t *le )
{
refEntity_t *ent = &le->refEntity;

float frac = ( cg.time - le->startTime )/((float)( le->endTime - le->startTime ));
float frac = (( cg.time - le->startTime ) + cg.timeFraction)/((float)( le->endTime - le->startTime ));

frac *= frac * frac; // yes, this is completely ridiculous...but it causes the shell to grow slowly then "explode" at the end

Expand Down Expand Up @@ -815,8 +815,8 @@ void CG_AddScorePlum( localEntity_t *le ) {
// so it doesn't add too much overdraw
VectorSubtract( origin, cg.refdef.vieworg, delta );
len = VectorLength( delta );
if ( len < 20 ) {
CG_FreeLocalEntity( le );
if ( len < 7*7 ) {
// CG_FreeLocalEntity( le );
return;
}

Expand Down

0 comments on commit 1c2856b

Please sign in to comment.