From: Mario Date: Sat, 24 Sep 2022 03:35:01 +0000 (+1000) Subject: Don't update the LOD model indexes if the model's index matches a LOD model, fixes... X-Git-Tag: xonotic-v0.8.6~201^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bccf0b70a29eee690f372eef6e6a47acc44dcdd8;p=xonotic%2Fxonotic-data.pk3dir.git Don't update the LOD model indexes if the model's index matches a LOD model, fixes lower quality models being stuck enabled --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 121af1947..7ddfaa5f9 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -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;