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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user