]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/draw.qc
Use draw_PreloadPicture for the menu, and repair the last file path problems
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / draw.qc
index 0a041940e2f877406480456de75241c8858b030a..7fe4aea3bdc38e57c99eb976b90326f8658198ca 100644 (file)
@@ -53,10 +53,10 @@ vector boxToGlobalSize(vector v, vector theScale)
        return v;
 }
 
-void draw_PreloadPicture(string pic)
+string draw_PreloadPicture(string pic)
 {
        pic = draw_UseSkinFor(pic);
-       precache_pic(pic);
+       return precache_pic(pic);
 }
 
 void draw_Picture(vector theOrigin, string pic, vector theSize, vector theColor, float theAlpha)