mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
only release hook if hooked on a player
This commit is contained in:
parent
ccff9ddc9e
commit
e35d383141
|
@ -291,7 +291,7 @@ void player_core::tick()
|
|||
|
||||
// release hook
|
||||
hook_tick++;
|
||||
if(hook_tick > SERVER_TICK_SPEED*2)
|
||||
if(hooked_player != -1 && hook_tick > SERVER_TICK_SPEED*2)
|
||||
{
|
||||
hooked_player = -1;
|
||||
hook_state = HOOK_RETRACTED;
|
||||
|
|
Loading…
Reference in a new issue