diff options
author | Roman Tetelman <kevlarman@gmail.com> | 2009-10-03 12:05:12 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:39 +0000 |
commit | 3bab258f94500c48a46c14e68ff81005483e6ebf (patch) | |
tree | bd842030c12daa63ce8f09a0f2c5ff9b5ed15375 /src/game/g_target.c | |
parent | 30386f196338d06c92eee69abab009f368a63813 (diff) |
* CG_PLAYER_LOCATION now determined by the client
* add trap_R_inPVS to cg_local.h/cg_syscalls.asm
Diffstat (limited to 'src/game/g_target.c')
-rw-r--r-- | src/game/g_target.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/g_target.c b/src/game/g_target.c index b2c2d9ab..9e110162 100644 --- a/src/game/g_target.c +++ b/src/game/g_target.c @@ -298,10 +298,10 @@ static void target_location_linkup( gentity_t *ent ) for( i = 0, ent = g_entities, n = 1; i < level.num_entities; i++, ent++) { - if( ent->classname && !Q_stricmp( ent->classname, "target_location" ) ) + if( ent->s.eType == ET_LOCATION ) { // lets overload some variables! - ent->health = n; // use for location marking + ent->s.generic1 = n; // use for location marking trap_SetConfigstring( CS_LOCATIONS + n, ent->message ); n++; ent->nextTrain = level.locationHead; @@ -323,7 +323,8 @@ void SP_target_location( gentity_t *self ) { self->think = target_location_linkup; self->nextthink = level.time + 200; // Let them all spawn first - + self->s.eType = ET_LOCATION; + trap_LinkEntity( self ); // make the server send them to the clients G_SetOrigin( self, self->s.origin ); } |