]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
precache the default player model, fixes #1050
authorRudolf Polzer <divverent@alientrap.org>
Mon, 20 Feb 2012 12:21:16 +0000 (13:21 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 20 Feb 2012 12:21:16 +0000 (13:21 +0100)
qcsrc/client/csqcmodel_hooks.qc

index a0a6e150e373dee3a051e175a75e8842cd4a4618..6010cf0a521e1421a8bfdaecb11bafe230652c21 100644 (file)
@@ -117,6 +117,7 @@ void CSQCPlayer_ForceModel_Apply(float islocalplayer)
        {
                entity e;
                e = spawn();
+               precache_model(cvar_defstring("_cl_playermodel"));
                setmodel(e, cvar_defstring("_cl_playermodel"));
                forceplayermodels_goodmodel = e.model;
                forceplayermodels_goodmodelindex = e.modelindex;