Fix FPS model not being set correctly to match the world model
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 3m46s

This commit is contained in:
smallmodel 2024-12-30 20:24:49 +01:00
parent aa9847cf90
commit d83ad43b0b
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -1200,7 +1200,9 @@ void CG_ModelAnim(centity_t *cent, qboolean bDoShaderTime)
if (!cg.pLastPlayerWorldModel || cg.pLastPlayerWorldModel != model.tiki) {
qhandle_t hModel;
char fpsname[128];
COM_StripExtension(model.tiki->a->name, fpsname, sizeof(fpsname));
Q_strcat(fpsname, sizeof(fpsname), "_fps.tik");
hModel = cgi.R_RegisterModel(fpsname);
if (hModel) {