]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure deactivated dynlights don't get turned back on when targeted
authorMario <mario.mario@y7mail.com>
Sat, 3 Aug 2024 14:18:03 +0000 (00:18 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 3 Aug 2024 14:18:03 +0000 (00:18 +1000)
qcsrc/common/mapobjects/misc/dynlight.qc

index f3647dce8ac1b4f621f2a81964029b0f99a4e27f..27566fdd6a84d9c7a86614fa13ac4d1493f5fa35 100644 (file)
@@ -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