]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Explicit check for ACTIVE_NOT
authorFreddy <schro.sb@gmail.com>
Sat, 7 Apr 2018 16:08:36 +0000 (18:08 +0200)
committerFreddy <schro.sb@gmail.com>
Sat, 7 Apr 2018 16:08:36 +0000 (18:08 +0200)
qcsrc/common/triggers/func/conveyor.qc

index 4214a73239628f1a06a405cda73f7d094a18e4cd..9ad326cfa225f7ef9b0c08151e96f4feeacdff39 100644 (file)
@@ -19,7 +19,7 @@ void conveyor_think(entity this)
 
        if(this.active == ACTIVE_ACTIVE)
        {
-               FOREACH_ENTITY_RADIUS((this.absmin + this.absmax) * 0.5, vlen(this.absmax - this.absmin) * 0.5 + 1, !it.conveyor.active && isPushable(it),
+               FOREACH_ENTITY_RADIUS((this.absmin + this.absmax) * 0.5, vlen(this.absmax - this.absmin) * 0.5 + 1, it.conveyor.active == ACTIVE_NOT && isPushable(it),
                {
                        vector emin = it.absmin;
                        vector emax = it.absmax;