]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add patch from Juhu/strafehud-fixes branch: "strafehud: remove tab characters"
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 22 Mar 2021 12:54:20 +0000 (13:54 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Mon, 22 Mar 2021 12:54:20 +0000 (13:54 +0100)
qcsrc/client/hud/panel/strafehud.qc

index e2aa6e0d67f332bfa8e1a1469f88af09ebc66dd4..fb68f38d0a8624d3c7d6e252c57a6bf93e5c9d8a 100644 (file)
@@ -977,27 +977,27 @@ void StrafeHUD_drawGradient(vector color1, vector color2, vector size, float ori
 // length unit conversion (km and miles are only included to match the GetSpeedUnit* functions)
 float GetLengthUnitFactor(int length_unit)
 {
-       switch(length_unit)
-       {
-               default:
-               case 1: return 1.0;
-               case 2: return 0.0254;
-               case 3: return 0.0254 * 0.001;
-               case 4: return 0.0254 * 0.001 * 0.6213711922;
-               case 5: return 0.0254 * 0.001 * 0.5399568035;
-       }
+    switch(length_unit)
+    {
+        default:
+        case 1: return 1.0;
+        case 2: return 0.0254;
+        case 3: return 0.0254 * 0.001;
+        case 4: return 0.0254 * 0.001 * 0.6213711922;
+        case 5: return 0.0254 * 0.001 * 0.5399568035;
+    }
 }
 
 string GetLengthUnit(int length_unit)
 {
-       switch(length_unit)
-       {
-               // translator-friendly strings without the initial space
-               default:
-               case 1: return strcat(" ", _("qu"));
-               case 2: return strcat(" ", _("m"));
-               case 3: return strcat(" ", _("km"));
-               case 4: return strcat(" ", _("mi"));
-               case 5: return strcat(" ", _("nmi"));
-       }
+    switch(length_unit)
+    {
+        // translator-friendly strings without the initial space
+        default:
+        case 1: return strcat(" ", _("qu"));
+        case 2: return strcat(" ", _("m"));
+        case 3: return strcat(" ", _("km"));
+        case 4: return strcat(" ", _("mi"));
+        case 5: return strcat(" ", _("nmi"));
+    }
 }