]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add brackets around the nested viewmodel draw call, seems to fix a strange case of...
authorMario <mario.mario@y7mail.com>
Sun, 1 Jan 2023 04:10:25 +0000 (14:10 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 1 Jan 2023 04:10:25 +0000 (14:10 +1000)
qcsrc/client/view.qc

index a9ad0a76bd7e612d58fdeaafa49a40cc27d8fa66..6035dbcf45a14823cd96b90e495457026b4323cc 100644 (file)
@@ -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);