mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed ninjabug
This commit is contained in:
parent
dfdb614ef5
commit
0fc473eda0
|
@ -557,6 +557,7 @@ int player::handle_ninja()
|
|||
if ((server_tick() - ninjaactivationtick) > (data->weapons[WEAPON_NINJA].duration * server_tickspeed() / 1000))
|
||||
{
|
||||
// time's up, return
|
||||
weapons[WEAPON_NINJA].got = false;
|
||||
active_weapon = last_weapon;
|
||||
set_weapon(active_weapon);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue