]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove func_breakable CSQC model linking
authorMario <mario.mario@y7mail.com>
Mon, 21 Oct 2013 08:39:15 +0000 (19:39 +1100)
committerMario <mario.mario@y7mail.com>
Mon, 21 Oct 2013 08:39:15 +0000 (19:39 +1100)
qcsrc/server/func_breakable.qc

index 29f42189a3539285d635d3c5dbbf26083ee76b1c..ca7c891bfe1ec590fd397f1f03aa2591947ba283 100644 (file)
@@ -209,17 +209,11 @@ void func_breakable_damage(entity inflictor, entity attacker, float damage, floa
        }
 }
 
-void func_breakable_think()
-{
-       self.nextthink = time;
-       CSQCMODEL_AUTOUPDATE();
-}
-
 void func_breakable_reset()
 {
        self.team = self.team_saved;
-       self.think = func_breakable_think;
-       self.nextthink = time;
+       self.think = func_null;
+       self.nextthink = 0;
        func_breakable_look_restore();
        if(self.spawnflags & 1)
                func_breakable_behave_destroyed();
@@ -276,8 +270,6 @@ void spawnfunc_func_breakable() {
 
        self.reset = func_breakable_reset;
        func_breakable_reset();
-       
-       CSQCMODEL_AUTOINIT();
 }
 
 // for use in maps with a "model" key set