]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix medal position in the Race panel
authorterencehill <piuntn@gmail.com>
Mon, 3 Jul 2017 10:58:04 +0000 (12:58 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 3 Jul 2017 10:58:04 +0000 (12:58 +0200)
qcsrc/client/hud/panel/modicons.qc

index c3e91d3e9c7070838a2973d180f353459dbf69c0..e87d64c87bb002641fedb5c5884b000593aacb62 100644 (file)
@@ -551,7 +551,7 @@ void HUD_Mod_Race(vector pos, vector mySize)
                squareSize = min(mySize.y, mySize.x/2);
                vector ofs = vec2(0.5 * max(0, mySize.x/2 - squareSize), 0.5 * (mySize.y - squareSize));
                textPos = pos + ofs;
-               ofs.y += 0.5 * mySize.x;
+               ofs.x += 0.5 * mySize.x;
                medalPos = pos + ofs;
        } else {
                // text on top