]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/dialog_multiplayer_create_mapinfo.c
Use draw_PreloadPicture for the menu, and repair the last file path problems
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_multiplayer_create_mapinfo.c
index fb2553e7350586b5f528207159ae8c8e938710d1..063604724dd43f280bc2cbf87c40fc0e796a56d0 100644 (file)
@@ -54,7 +54,7 @@ void XonoticMapInfoDialog_loadMapInfo(entity me, float i, entity mlb)
        me.authorLabel.setText(me.authorLabel, me.currentMapAuthor);
        me.descriptionLabel.setText(me.descriptionLabel, me.currentMapDescription);
        me.featuresLabel.setText(me.featuresLabel, me.currentMapFeaturesText);
-       if(precache_pic(strcat("maps/", currentMapPreviewImage)) == "")
+       if(draw_PreloadPicture(me.currentMapPreviewImage) == "")
                me.previewImage.src = "nopreview_map";
        else
                me.previewImage.src = me.currentMapPreviewImage;