Merge commit '515673c08f8718a237e90c2130a1f5294f966d6a'
[xonotic/netradiant.git] / plugins / entity / targetable.h
index 82dd43afa0dd87dae70b5700dd211818d2e6ff0e..b2b3a517c2caa4d986f88505f2e67e5214fa1c19 100644 (file)
@@ -224,6 +224,11 @@ class TargetKeys : public Entity::Observer
         return true;
       }
     }
+    if(string_equal(key, "killtarget"))
+    {
+      index = -1;
+         return true;
+    }
     return false;
   }
 public:
@@ -398,7 +403,7 @@ public:
       return childBounds.origin;
     }
 #endif
-    return localToWorld().t();
+    return vector4_to_vector3(localToWorld().t());
   }
 
   void render(Renderer& renderer, const VolumeTest& volume) const