]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix origin bug in func_breakable
authorMrBougo <mrbougo@xonotic.org>
Fri, 20 Aug 2010 14:58:47 +0000 (16:58 +0200)
committerMrBougo <mrbougo@xonotic.org>
Fri, 20 Aug 2010 14:58:47 +0000 (16:58 +0200)
qcsrc/server/func_breakable.qc

index e525b9caedd6f918c0bae5cd9d1d9239e8a1bb72..a5e8dfa5897ce1c74deacce9b05351bbf8498700 100644 (file)
@@ -88,12 +88,12 @@ void func_breakable_look_destroyed()
        if(self.mdl_dead == "")
                self.model = "";
        else {
-               setmodel(self, self.mdl_dead);
                if (self.origin == '0 0 0')     {       // probably no origin brush, so don't spawn in the middle of the map..
                        floor_z = self.absmin_z;
                        setorigin(self,((self.absmax+self.absmin)*.5));
                        self.origin_z = floor_z;
                }
+               setmodel(self, self.mdl_dead);
        }
 
        self.solid = SOLID_NOT;