]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/mapvoting.qc
Use a better way to check that the normal preview image exists. Instead of checking...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / mapvoting.qc
index 201d1a96962439f63e49e2e323717a65a0b655b0..a7ef9a19230ec1d2dadb971e8533c0dae511a7d1 100644 (file)
@@ -88,7 +88,10 @@ void MapVote_DrawMapItem(vector pos, float isize, float tsize, string map, strin
        }
        else
        {
-               drawpic(pos, pic, img_size, '1 1 1', alpha, DRAWFLAG_NORMAL);
+               if(precache_pic(pic) == "")
+                       drawpic(pos, draw_UseSkinFor("nopreview_player"), img_size, '1 1 1', alpha, DRAWFLAG_NORMAL);
+               else
+                       drawpic(pos, pic, img_size, '1 1 1', alpha, DRAWFLAG_NORMAL);
        }
 
        if(id == mv_ownvote)