hopefully fix invisible-player bug
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 31 Oct 2009 21:29:50 +0000 (21:29 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 31 Oct 2009 21:29:50 +0000 (21:29 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8195 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/server/cl_client.qc

index f7c4273..b05753c 100644 (file)
@@ -718,9 +718,9 @@ void FixPlayermodel()
                oldskin = self.skinindex;
                self.skinindex = defaultskin;
        } else {
-               if (self.playermodel != self.model)
+               if (self.playermodel != self.model || self.playermodel == "")
                {
-                       self.playermodel = CheckPlayerModel(self.playermodel);
+                       self.playermodel = CheckPlayerModel(self.playermodel); // this is never "", so no endless loop
                        m1 = self.mins;
                        m2 = self.maxs;
                        setmodel_lod (self, self.playermodel);