]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't update the LOD model indexes if the model's index matches a LOD model, fixes...
authorMario <mario.mario@y7mail.com>
Sat, 24 Sep 2022 03:35:01 +0000 (13:35 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 24 Sep 2022 03:35:01 +0000 (13:35 +1000)
qcsrc/client/csqcmodel_hooks.qc

index 121af1947a9b256ae2b4e0e7013ea4865db10898..7ddfaa5f9e0bf5eae7c950cb063026c43558420a 100644 (file)
@@ -28,7 +28,7 @@ void CSQCPlayer_LOD_Apply(entity this, bool isplayer)
        int detailreduction = ((isplayer) ? autocvar_cl_playerdetailreduction : autocvar_cl_modeldetailreduction);
 
        // LOD model loading
-       if(this.lodmodelindex0 != this.modelindex)
+       if(this.lodmodelindex0 != this.modelindex && this.lodmodelindex1 != this.modelindex && this.lodmodelindex2 != this.modelindex)
        {
                string modelname = this.model;
                string s;