Skip to content

Commit

Permalink
udm.on_entity_deleted(): Cancel the clip refill delay
Browse files Browse the repository at this point in the history
Signed-off-by: BackRaw <backraw@gmx.de>
  • Loading branch information
BackRaw committed Dec 27, 2017
1 parent 849470f commit 00b68b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/source-python/plugins/udm/udm.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ def on_entity_deleted(base_entity):
"""Cancel the refill & drop delays for the deleted entity."""
if base_entity.classname.startswith(weapon_manager.prefix):
delay_manager.cancel(f'drop_{base_entity.index}')
delay_manager.cancel(f'refill_clip_{base_entity.index}')


@OnEntitySpawned
Expand Down

0 comments on commit 00b68b9

Please sign in to comment.