X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_lights.qc;h=425716d2da7cb92dc3001d2383947b7a4eab86dd;hb=da898acce3a98f4d382f0beaabf7e4b949c8712e;hp=41366f5ea2a5f1c9a84d9e386774740a774f261e;hpb=b9671f63469586007314131f3f53728795c035cd;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_lights.qc b/qcsrc/server/g_lights.qc index 41366f5ea..425716d2d 100644 --- a/qcsrc/server/g_lights.qc +++ b/qcsrc/server/g_lights.qc @@ -37,7 +37,7 @@ flags: void dynlight_think(entity this) { if(!this.owner) - remove(this); + delete(this); this.nextthink = time + 0.1; } @@ -48,7 +48,7 @@ void dynlight_find_aiment(entity this) objerror (this, "dynlight: no target to follow"); targ = find(NULL, targetname, this.target); - this.movetype = MOVETYPE_FOLLOW; + set_movetype(this, MOVETYPE_FOLLOW); this.aiment = targ; this.owner = targ; this.punchangle = targ.angles; @@ -123,7 +123,7 @@ spawnfunc(dynlight) if (this.target) // if (!(this.spawnflags & DFOLLOW)) { - this.movetype = MOVETYPE_NOCLIP; + set_movetype(this, MOVETYPE_NOCLIP); if (!this.speed) this.speed = 100; InitializeEntity(this, dynlight_find_path, INITPRIO_FINDTARGET);