]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If removing an object that contains attachments, detach child objects first
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 21:32:17 +0000 (00:32 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 27 Oct 2011 21:32:17 +0000 (00:32 +0300)
qcsrc/server/mutators/sandbox.qc

index 4ae4b6f931402aa84192dfa548ea258648998a72..90f87498084ac6da4eeef6647775dbbbe015d12f 100644 (file)
@@ -129,6 +129,7 @@ entity sandbox_SpawnObject()
 
 void sandbox_RemoveObject(entity e)
 {
+       sandbox_AttachObject_Remove(e); // detach child objects
        if(e.material)
        {
                strunzone(e.material);