]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/t_items.qc
more if simplification
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / t_items.qc
index 7576d761ed75c993a4c3922a050c1b8afc1ae519..e5c6218b1289f0e4e923058c1e537ab3c125344d 100644 (file)
@@ -1461,10 +1461,9 @@ void target_items_use(entity this, entity actor, entity trigger)
                return;
        }
 
-       if (!IS_PLAYER(actor))
-               return;
-       if(IS_DEAD(actor))
+       if (!IS_PLAYER(actor) || IS_DEAD(actor))
                return;
+
        if(trigger.solid == SOLID_TRIGGER)
        {
                EXACTTRIGGER_TOUCH(this, trigger);