]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
support "target2" etc. name keys for Q3A maps too
authorrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 10 Nov 2008 15:54:59 +0000 (15:54 +0000)
committerrpolzer <rpolzer@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 10 Nov 2008 15:54:59 +0000 (15:54 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@127 61c419a2-8eb2-4b30-bcec-8cead039b335

plugins/entity/namekeys.h

index 20110c408c7e47c95f2ebd5c396db526b68d94ae..2dcfc94adbff02b8618c033a410baa89b452afa4 100644 (file)
@@ -143,7 +143,8 @@ inline bool keyIsNameQuake3(const char* key)
 {
   return string_equal(key, "target")
     || string_equal(key, "targetname")
-    || string_equal(key, "killtarget");
+    || string_equal(key, "killtarget")
+    || (string_equal_n(key, "target", 6) && string_is_integer(key + 6)); // Nexuiz
 }
 
 #endif