]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
more if simplification
authorAmadeusz Sławiński <amade@asmblr.net>
Wed, 22 Feb 2017 13:40:18 +0000 (14:40 +0100)
committerAmadeusz Sławiński <amade@asmblr.net>
Wed, 22 Feb 2017 13:40:18 +0000 (14:40 +0100)
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);