shanapu / MyJailbreak

A rewrite of Franugs Special Jailbreak and merge of eccas, ESK0s & zipcores Jailbreak Warden
https://forums.alliedmods.net/showthread.php?t=283212
GNU General Public License v3.0
51 stars 36 forks source link

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

Open azalty opened 3 years ago

azalty commented 3 years ago

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)