From: Mario Date: Fri, 21 Oct 2016 01:38:32 +0000 (+1000) Subject: Reapply size to func_breakable when changing its model X-Git-Tag: xonotic-v0.8.2~485 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f727d6800727257eba95032ddd1b056f210064c4;p=xonotic%2Fxonotic-data.pk3dir.git Reapply size to func_breakable when changing its model --- diff --git a/qcsrc/common/triggers/func/breakable.qc b/qcsrc/common/triggers/func/breakable.qc index d2c8ee067..b6dcd01f8 100644 --- a/qcsrc/common/triggers/func/breakable.qc +++ b/qcsrc/common/triggers/func/breakable.qc @@ -109,6 +109,7 @@ void func_breakable_look_destroyed(entity this) this.origin_z = floorZ; } _setmodel(this, this.mdl_dead); + ApplyMinMaxScaleAngles(this); this.effects &= ~EF_NODRAW; } @@ -120,6 +121,7 @@ void func_breakable_look_destroyed(entity this) void func_breakable_look_restore(entity this) { _setmodel(this, this.mdl); + ApplyMinMaxScaleAngles(this); this.effects &= ~EF_NODRAW; if(this.mdl_dead != "") // only do this if we use mdl_dead, to behave better with misc_follow