1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 10:22:52 +01:00

Fix vehicle damage

Damage was only applied if there was an impulse/impact
This commit is contained in:
husho 2018-06-01 20:18:18 +03:00
parent 070f58809e
commit cc81aa1d5b

View File

@ -654,9 +654,9 @@ bool VehicleObject::takeDamage(const GameObject::DamageInfo& dmg) {
}
/// @todo determine when doors etc. should un-latch
}
}
health -= dmg.hitpoints;
}
return true;
}