]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/mapvoting.qc
Cvars and code comments
[voretournament/voretournament.git] / data / qcsrc / client / mapvoting.qc
index 655163da9d03adb176c040bce96600c323288fb6..20220df42118456c40b66373c2e22d555e4b05e6 100644 (file)
@@ -75,8 +75,8 @@ void MapVote_DrawMapItem(vector pos, float isize, float tsize, string map, strin
        img_size -= (sbar_border_thickness * 2) * '1 1 0';\r
        if(pic == "")\r
        {\r
-               if(precache_pic(pic) == "")\r
-                       drawpic(pos, draw_UseSkinFor("nopreview_player"), img_size, '1 1 1', 0.7, DRAWFLAG_NORMAL);\r
+               if(drawgetimagesize(pic) == '0 0 0')\r
+                       drawpic(pos, draw_UseSkinFor("nopreview_map"), img_size, '1 1 1', 0.7, DRAWFLAG_NORMAL);\r
                else\r
                        drawpic(pos, pic, img_size, '1 1 1', 0.7, DRAWFLAG_NORMAL);\r
        }\r