Fixes the gatling laser locking up (#7034)

is_charging wasn't set to FALSE when needed. It is now set. Scope-guard would be helpful.
This commit is contained in:
Erki
2019-09-21 19:29:27 +03:00
committed by GitHub
parent ed5dfa1872
commit a0040004d0
2 changed files with 8 additions and 0 deletions

View File

@@ -276,6 +276,7 @@
)
is_charging = 1
if(!do_after(user, 30))
is_charging = 0
return 0
is_charging = 0
if(!istype(user.get_active_hand(), src))
@@ -368,6 +369,7 @@
)
is_charging = 1
if(!do_after(user, 20))
is_charging = 0
return 0
is_charging = 0
if(!istype(user.get_active_hand(), src))
@@ -495,6 +497,7 @@
)
is_charging = 1
if(!do_after(user, 20))
is_charging = 0
return 0
is_charging = 0
msg_admin_attack("[key_name_admin(user)] shot with \a [src.type] [key_name_admin(src)]'s target (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[src.x];Y=[src.y];Z=[src.z]'>JMP</a>)",ckey=key_name(user),ckey_target=key_name(src))