1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 11:52:40 +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,10 +654,10 @@ bool VehicleObject::takeDamage(const GameObject::DamageInfo& dmg) {
} }
/// @todo determine when doors etc. should un-latch /// @todo determine when doors etc. should un-latch
} }
health -= dmg.hitpoints;
} }
health -= dmg.hitpoints;
return true; return true;
} }