removed duplicate assignment from rigidbody_add_contact

This commit is contained in:
Sara 2023-10-25 20:26:46 +02:00
parent def06c4018
commit 57ef426982

View file

@ -49,7 +49,6 @@ void rigidbody_add_contact(RigidBody* self, Collision hit) {
list_foreach(Contact, contact, &self->contacts) {
if(contact->hit.other.data == hit.other.data) {
++contact->expiry;
hit.velocity = contact->hit.velocity;
contact->hit = hit;
contact->duration += delta_time();
return;