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

Merge pull request #492 from husho/patch-3

Fix vehicle damage
This commit is contained in:
Jannik Vogel 2018-06-19 18:36:36 +02:00 committed by GitHub
commit 3a052353a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -659,9 +659,9 @@ 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;
} }