X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapobjects%2Fmisc%2Fdynlight.qc;h=6e9f02b874a2c51610282c881121da037dbfc2c5;hb=ec68068e1a6c0d6164796d7e344501c94762f170;hp=7c70b8444e0fac5490ff7a0d5cf8882ef1dd59a7;hpb=62d736d8c3a51baf5fa3a4265e39a2b773704a91;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapobjects/misc/dynlight.qc b/qcsrc/common/mapobjects/misc/dynlight.qc index 7c70b8444..6e9f02b87 100644 --- a/qcsrc/common/mapobjects/misc/dynlight.qc +++ b/qcsrc/common/mapobjects/misc/dynlight.qc @@ -46,7 +46,7 @@ void dynlight_think(entity this) void dynlight_find_aiment(entity this) { entity targ; - if (!this.target) + if (!this.target || this.target == "") objerror (this, "dynlight: no target to follow"); targ = find(NULL, targetname, this.target); @@ -62,7 +62,7 @@ void dynlight_find_aiment(entity this) void dynlight_find_path(entity this) { entity targ; - if (!this.target) + if (!this.target || this.target == "") objerror (this, "dynlight: no target to follow"); targ = find(NULL, targetname, this.target); @@ -74,7 +74,7 @@ void dynlight_find_path(entity this) void dynlight_find_target(entity this) { entity targ; - if (!this.target) + if (!this.target || this.target == "") objerror (this, "dynlight: no target to follow"); targ = find(NULL, targetname, this.target);