From f80dd7097e62c20520d76e77162c7e312ce5e0e0 Mon Sep 17 00:00:00 2001 From: Jakob Fries Date: Sun, 29 Jul 2007 22:20:00 +0000 Subject: [PATCH] hook no longer hits dead people --- src/game/server/game_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/game_server.cpp b/src/game/server/game_server.cpp index 844fb3ab2..f366b2c7f 100644 --- a/src/game/server/game_server.cpp +++ b/src/game/server/game_server.cpp @@ -1089,7 +1089,7 @@ void player::tick() if(ent && ent->objtype == OBJTYPE_PLAYER) { 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; hooked_player = p;