env_explosion: Don't trigger when disabled (duh)
This commit is contained in:
parent
57b19425c1
commit
6c8b56c39f
|
@ -170,6 +170,10 @@ env_explosion::Trigger(entity act, triggermode_t state)
|
||||||
{
|
{
|
||||||
bool shouldDamage = true;
|
bool shouldDamage = true;
|
||||||
|
|
||||||
|
if (m_bEnabled == false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (HasSpawnFlags(ENVEXPLO_NOTUNDERWATER) == true && WaterLevel() > 0) {
|
if (HasSpawnFlags(ENVEXPLO_NOTUNDERWATER) == true && WaterLevel() > 0) {
|
||||||
shouldDamage = false;
|
shouldDamage = false;
|
||||||
} else if (HasSpawnFlags(ENVEXPLO_NODAMAGE) == true) {
|
} else if (HasSpawnFlags(ENVEXPLO_NODAMAGE) == true) {
|
||||||
|
|
Loading…
Reference in New Issue