]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/weaponslist.qc
Replace `vector_[xyz]` with `vector.[xyz]` where possible
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / weaponslist.qc
index 8a8e2205dde03b0ed001162728dda4e6e6783dc9..0a6f38f18f97a2ea717dbe4019640db089b98722 100644 (file)
@@ -59,9 +59,9 @@ void XonoticWeaponsList_resizeNotify(entity me, vector relOrigin, vector relSize
 {
        SUPER(XonoticWeaponsList).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
 
-       me.realFontSize_y = me.fontSize / (absSize_y * me.itemHeight);
-       me.realFontSize_x = me.fontSize / (absSize_x * (1 - me.controlWidth));
-       me.realUpperMargin = 0.5 * (1 - me.realFontSize_y);
+       me.realFontSize_y = me.fontSize / (absSize.y * me.itemHeight);
+       me.realFontSize_x = me.fontSize / (absSize.x * (1 - me.controlWidth));
+       me.realUpperMargin = 0.5 * (1 - me.realFontSize.y);
 }
 float XonoticWeaponsList_mouseDrag(entity me, vector pos)
 {
@@ -103,9 +103,9 @@ void XonoticWeaponsList_drawListBoxItem(entity me, float i, vector absSize, floa
 
        vector save_fontscale = draw_fontscale;
        float f = draw_CondensedFontFactor(msg, FALSE, me.realFontSize, 1);
-       draw_fontscale_x *= f;
+       draw_fontscale.x *= f;
        vector fs = me.realFontSize;
-       fs_x *= f;
+       fs.x *= f;
        draw_Text(me.realUpperMargin * eY, msg, fs, SKINCOLOR_TEXT, SKINALPHA_TEXT, 0);
        draw_fontscale = save_fontscale;
 }