shanapu / MyJailbreak

A rewrite of Franugs Special Jailbreak and merge of eccas, ESK0s & zipcores Jailbreak Warden

Home Page:https://forums.alliedmods.net/showthread.php?t=283212

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Request Heal Module: Previous askers are healed as well

azalty opened this issue · comments

Describe the bug

A terrorist asks for heal and his request is accepted
If another terrorist then asks for heal, if the warden accepts, both terrorists will get a seringe.
-> All previous terrorists that asked for heal (and got accepted) will be healed again (receive another seringe)

To fix

  1. set g_bHealed[client] to false when we healed someone

OR

  1. get rid of this variable, since it is useless -> replace this line (this will not be valid anymore if the file is changed) with if (g_hTimerHeal[client] == null)