2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 22:27:42 +00:00

General: Use bool literals where applicable

More indicative of the passed in type compared to raw values.
This commit is contained in:
Lioncash
2020-04-17 17:39:04 -04:00
parent 75e5851e5b
commit 76f0b57340
2 changed files with 2 additions and 2 deletions

View File

@@ -255,7 +255,7 @@ void CScriptTrigger::Touch(CActor& act, CStateManager& mgr) {
x148_29_didPhazonDamage = false;
} else if (x100_damageInfo.GetDamage() > 0.f) {
const CDamageVulnerability* dVuln = mgr.Player()->GetDamageVulnerability();
if (dVuln->WeaponHurts(x100_damageInfo.GetWeaponMode(), 0) &&
if (dVuln->WeaponHurts(x100_damageInfo.GetWeaponMode(), false) &&
x100_damageInfo.GetWeaponMode().GetType() == EWeaponType::Phazon &&
!mgr.GetPlayerState()->HasPowerUp(CPlayerState::EItemType::PhazonSuit)) {
pl->IncrementEnvironmentDamage();