hook no longer hits dead people

This commit is contained in:
Jakob Fries 2007-07-29 22:20:00 +00:00
parent 8233a44b60
commit f80dd7097e

View file

@ -1089,7 +1089,7 @@ void player::tick()
if(ent && ent->objtype == OBJTYPE_PLAYER) if(ent && ent->objtype == OBJTYPE_PLAYER)
{ {
player *p = (player*)ent; player *p = (player*)ent;
if(p != this && distance(p->pos, new_pos) < p->phys_size) if(p != this && !p->dead && distance(p->pos, new_pos) < p->phys_size)
{ {
hook_state = HOOK_GRABBED; hook_state = HOOK_GRABBED;
hooked_player = p; hooked_player = p;