]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/view.qc
Use a different crosshair setting in side-scrolling mode
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / view.qc
index 6a294d5ad5d35322c4576e063a844bcc0da16a15..28b10da9ed4b5a9e4a0fe39f6fb7da941303fcff 100644 (file)
@@ -997,6 +997,8 @@ void HUD_Crosshair(entity this)
                string wcross_style;
                float wcross_alpha, wcross_resolution;
                wcross_style = autocvar_crosshair;
+               if (csqcplayer.viewloc && (csqcplayer.viewloc.spawnflags & VIEWLOC_FREEAIM) && autocvar_crosshair_2d != "")
+                       wcross_style = autocvar_crosshair_2d;
                if (wcross_style == "0")
                        return;
                wcross_resolution = autocvar_crosshair_size;