mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 02:12:45 +01:00
Fix vehicle damage
Damage was only applied if there was an impulse/impact
This commit is contained in:
parent
070f58809e
commit
cc81aa1d5b
@ -654,10 +654,10 @@ bool VehicleObject::takeDamage(const GameObject::DamageInfo& dmg) {
|
||||
}
|
||||
/// @todo determine when doors etc. should un-latch
|
||||
}
|
||||
|
||||
health -= dmg.hitpoints;
|
||||
}
|
||||
|
||||
health -= dmg.hitpoints;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user