]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
sorry, clones should NOT set self.owner. Use self.enemy instead.
authorRudolf Polzer <divverent@alientrap.org>
Fri, 17 Feb 2012 13:56:26 +0000 (14:56 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 17 Feb 2012 13:56:26 +0000 (14:56 +0100)
qcsrc/server/cl_player.qc
qcsrc/server/g_violence.qc

index 49b52555f6ebb0734b8ee371a3b33f08b5cf8466..326d13615f12f76253f01f150bce685f3a1366ac 100644 (file)
@@ -198,8 +198,6 @@ void CopyBody(float keepvelocity)
 
        Drag_MoveDrag(oldself, self);
 
-       self.owner = oldself;
-
        if(self.colormap <= maxclients && self.colormap > 0)
                self.colormap = 1024 + oldself.clientcolors;
 
index cae5e3520bc5043939e32f5abeb20952b0eb40b4..34d384c2833ad502a2c164992e2d68ac57481e35 100644 (file)
@@ -29,7 +29,7 @@ void Violence_GibSplash_At(vector org, vector dir, float type, float amount, ent
        // if this is a copied dead body, send the num of its player instead
        // TODO: remove this field, read from model txt files
        if(self.classname == "body")
-               e.team = num_for_edict(self.owner);
+               e.team = num_for_edict(self.enemy);
        else
                e.team = num_for_edict(self);