Merge remote-tracking branch 'origin/Mario/extralife_fix'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_items.qc
index 957e421e34279a437c2ce5ee32893d82f26a44be..cb6700a2cfb60a3a5e2e289ff82761976dada93a 100644 (file)
@@ -687,7 +687,7 @@ void Item_Touch (void)
                }
        }
 
                }
        }
 
-       if (other.classname != "player")
+       if not(IS_PLAYER(other))
                return;
        if (other.deadflag)
                return;
                return;
        if (other.deadflag)
                return;
@@ -1490,7 +1490,7 @@ void target_items_use (void)
                return;
        }
 
                return;
        }
 
-       if(activator.classname != "player")
+       if not(IS_PLAYER(activator))
                return;
        if(activator.deadflag != DEAD_NO)
                return;
                return;
        if(activator.deadflag != DEAD_NO)
                return;