From 9d079ad74783d246ecaa2ea378f4e6785a7bb0a8 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 4 Aug 2024 00:18:03 +1000 Subject: [PATCH] Make sure deactivated dynlights don't get turned back on when targeted --- qcsrc/common/mapobjects/misc/dynlight.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/common/mapobjects/misc/dynlight.qc b/qcsrc/common/mapobjects/misc/dynlight.qc index f3647dce8..27566fdd6 100644 --- a/qcsrc/common/mapobjects/misc/dynlight.qc +++ b/qcsrc/common/mapobjects/misc/dynlight.qc @@ -85,6 +85,8 @@ void dynlight_find_target(entity this) } void dynlight_use(entity this, entity actor, entity trigger) { + if(this.active != ACTIVE_ACTIVE) + return; if (this.light_lev == 0) this.light_lev = this.lefty; else -- 2.39.2