From: Rudolf Polzer Date: Mon, 20 Feb 2012 12:21:16 +0000 (+0100) Subject: precache the default player model, fixes #1050 X-Git-Tag: xonotic-v0.6.0~67 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=77454dc4b1f092c86e54b48aecf474cee529bef3;p=xonotic%2Fxonotic-data.pk3dir.git precache the default player model, fixes #1050 --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index a0a6e150e..6010cf0a5 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -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;