diff options
Diffstat (limited to 'KinematicBody2D.gd')
| -rw-r--r-- | KinematicBody2D.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/KinematicBody2D.gd b/KinematicBody2D.gd index 96484f3..4f2949c 100644 --- a/KinematicBody2D.gd +++ b/KinematicBody2D.gd @@ -34,5 +34,5 @@ func _physics_process(delta): get_owner().add_child(obj) var bodies = get_overlapping_bodies() for body in bodies: - if not "Bullet" in body.get_name(): + if body.get_name() != "Bullet": emit_signal("hit", delta) |
