X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_lights.qc;h=41366f5ea2a5f1c9a84d9e386774740a774f261e;hp=849ba535836e39522cd0dfa500d0c56b4b77a341;hb=b9671f63469586007314131f3f53728795c035cd;hpb=6e9c81c87d69e23957f16b541acb99bcb9be54bd diff --git a/qcsrc/server/g_lights.qc b/qcsrc/server/g_lights.qc index 849ba5358..41366f5ea 100644 --- a/qcsrc/server/g_lights.qc +++ b/qcsrc/server/g_lights.qc @@ -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);