From: Mario Date: Mon, 21 Oct 2013 08:39:15 +0000 (+1100) Subject: Remove func_breakable CSQC model linking X-Git-Tag: xonotic-v0.8.0~257^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9bb63393a13d599d401132d13264eae7ebee2387;p=xonotic%2Fxonotic-data.pk3dir.git Remove func_breakable CSQC model linking --- diff --git a/qcsrc/server/func_breakable.qc b/qcsrc/server/func_breakable.qc index 29f42189a..ca7c891bf 100644 --- a/qcsrc/server/func_breakable.qc +++ b/qcsrc/server/func_breakable.qc @@ -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