env_explosion: Don't trigger when disabled (duh)
This commit is contained in:
parent
57b19425c1
commit
6c8b56c39f
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue