]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_lights.qc
s/world/NULL/
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_lights.qc
index 849ba535836e39522cd0dfa500d0c56b4b77a341..41366f5ea2a5f1c9a84d9e386774740a774f261e 100644 (file)
@@ -47,7 +47,7 @@ void dynlight_find_aiment(entity this)
        if (!this.target)
                objerror (this, "dynlight: no target to follow");
 
-       targ = find(world, targetname, this.target);
+       targ = find(NULL, targetname, this.target);
        this.movetype = MOVETYPE_FOLLOW;
        this.aiment = targ;
        this.owner = targ;
@@ -63,7 +63,7 @@ void dynlight_find_path(entity this)
        if (!this.target)
                objerror (this, "dynlight: no target to follow");
 
-       targ = find(world, targetname, this.target);
+       targ = find(NULL, targetname, this.target);
        this.target = targ.target;
        setorigin(this, targ.origin);
        setthink(this, train_next);
@@ -75,7 +75,7 @@ void dynlight_find_target(entity this)
        if (!this.target)
                objerror (this, "dynlight: no target to follow");
 
-       targ = find(world, targetname, this.target);
+       targ = find(NULL, targetname, this.target);
        setattachment(this, targ, this.dtagname);
        this.owner = targ;
        setthink(this, dynlight_think);