diff options
author | John Ellis <johne@verizon.net> | 2010-08-02 03:02:42 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:41 +0000 |
commit | 223a672628feba84c2a37a32ff60f70c86653fc9 (patch) | |
tree | 6609dca625860b8cc27afbe7c8719ed58ef9ae29 | |
parent | b348663cb5d6d2c3a72ffd6e19a36697d28655cc (diff) |
* Fix target_print entities with private spawn flag 4 from messaging
everyone when triggered by a non-player.
-rw-r--r-- | src/game/g_target.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/g_target.c b/src/game/g_target.c index 5346d5b6..53df65cb 100644 --- a/src/game/g_target.c +++ b/src/game/g_target.c @@ -86,9 +86,10 @@ If "private", only the activator gets the message. If no checks, all clients ge */ void Use_Target_Print( gentity_t *ent, gentity_t *other, gentity_t *activator ) { - if( activator && activator->client && ( ent->spawnflags & 4 ) ) + if( ent->spawnflags & 4 ) { - trap_SendServerCommand( activator-g_entities, va( "cp \"%s\"", ent->message ) ); + if( activator && activator->client ) + trap_SendServerCommand( activator-g_entities, va( "cp \"%s\"", ent->message ) ); return; } |