env_explosion: Don't trigger when disabled (duh)

This commit is contained in:
Marco Cawthorne 2024-03-04 18:48:54 -08:00
parent 57b19425c1
commit 6c8b56c39f
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 4 additions and 0 deletions

View File

@ -170,6 +170,10 @@ env_explosion::Trigger(entity act, triggermode_t state)
{
bool shouldDamage = true;
if (m_bEnabled == false) {
return;
}
if (HasSpawnFlags(ENVEXPLO_NOTUNDERWATER) == true && WaterLevel() > 0) {
shouldDamage = false;
} else if (HasSpawnFlags(ENVEXPLO_NODAMAGE) == true) {