mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-05 23:58:19 +00:00
hook no longer hits dead people
This commit is contained in:
parent
8233a44b60
commit
f80dd7097e
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue