removed duplicate assignment from rigidbody_add_contact
This commit is contained in:
parent
def06c4018
commit
57ef426982
|
@ -49,7 +49,6 @@ void rigidbody_add_contact(RigidBody* self, Collision hit) {
|
||||||
list_foreach(Contact, contact, &self->contacts) {
|
list_foreach(Contact, contact, &self->contacts) {
|
||||||
if(contact->hit.other.data == hit.other.data) {
|
if(contact->hit.other.data == hit.other.data) {
|
||||||
++contact->expiry;
|
++contact->expiry;
|
||||||
hit.velocity = contact->hit.velocity;
|
|
||||||
contact->hit = hit;
|
contact->hit = hit;
|
||||||
contact->duration += delta_time();
|
contact->duration += delta_time();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue