diff options
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/g_combat.c | 12 | 
1 files changed, 3 insertions, 9 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 753ff673..aeba6544 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -56,19 +56,13 @@ LookAtKiller  */  void LookAtKiller( gentity_t *self, gentity_t *inflictor, gentity_t *attacker )  { -  vec3_t    dir;    if ( attacker && attacker != self ) -    VectorSubtract( attacker->s.pos.trBase, self->s.pos.trBase, dir ); +    self->client->ps.stats[ STAT_VIEWLOCK ] = attacker - g_entities;    else if( inflictor && inflictor != self ) -    VectorSubtract( inflictor->s.pos.trBase, self->s.pos.trBase, dir ); +    self->client->ps.stats[ STAT_VIEWLOCK ] = inflictor - g_entities;    else -  { -    self->client->ps.stats[ STAT_VIEWLOCK ] = self->s.angles[ YAW ]; -    return; -  } - -  self->client->ps.stats[ STAT_VIEWLOCK ] = vectoyaw( dir ); +    self->client->ps.stats[ STAT_VIEWLOCK ] = self - g_entities;  }  // these are just for logging, the client prints its own messages  | 
