Comment out size reset (can cause crashes with some models on first load)
authorMario <mario.mario@y7mail.com>
Fri, 8 Nov 2013 20:42:14 +0000 (07:42 +1100)
committerMario <mario.mario@y7mail.com>
Fri, 8 Nov 2013 20:42:14 +0000 (07:42 +1100)
qcsrc/csqcmodellib/cl_model.qc

index 3333096..d503571 100644 (file)
@@ -237,9 +237,9 @@ void CSQCModel_Read(float isnew)
 
        if(sf & CSQCMODEL_PROPERTY_MODELINDEX)
        {
-               vector oldmins = self.mins, oldmaxs = self.maxs;
+               //vector oldmins = self.mins, oldmaxs = self.maxs;
                setmodelindex(self, self.modelindex); // this retrieves the .model key and sets mins/maxs/absmin/absmax
-               setsize(self, oldmins, oldmaxs);
+               //setsize(self, oldmins, oldmaxs);
        }
 
        if(sf & CSQCMODEL_PROPERTY_TELEPORTED)