From: Mario Date: Sat, 3 Aug 2024 14:18:03 +0000 (+1000) Subject: Make sure deactivated dynlights don't get turned back on when targeted X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9d079ad74783d246ecaa2ea378f4e6785a7bb0a8;p=xonotic%2Fxonotic-data.pk3dir.git Make sure deactivated dynlights don't get turned back on when targeted --- 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