From: Mario Date: Sun, 1 Jan 2023 04:10:25 +0000 (+1000) Subject: Add brackets around the nested viewmodel draw call, seems to fix a strange case of... X-Git-Tag: xonotic-v0.8.6~234 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e02b28a21e077b9d74bcd6bb610e684ae6abd4ba;p=xonotic%2Fxonotic-data.pk3dir.git Add brackets around the nested viewmodel draw call, seems to fix a strange case of weapon models disappearing --- diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index a9ad0a76b..6035dbcf4 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -1604,9 +1604,15 @@ void CSQC_UpdateView(entity this, float w, float h) // run viewmodel_draw before updating view_angles to the angles calculated by WarpZone_FixView // viewmodel_draw needs to use the view_angles set by the engine on every CSQC_UpdateView call if(autocvar_r_drawviewmodel) + { for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot) + { if(viewmodels[slot].activeweapon) + { viewmodel_draw(viewmodels[slot]); + } + } + } // Render the Scene view_origin = getpropertyvec(VF_ORIGIN);