]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/mapvoting.qc
Use draw_PictureSize == '0 0 0' instead of draw_PreloadPicture == "", since preloadin...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / mapvoting.qc
index 1eeb304c7c169e29d5cc92fd43fc428f8a5b54bc..ebb2c4e746a4961ecccbfb993ee081d7ab227e65 100644 (file)
@@ -88,7 +88,7 @@ void MapVote_DrawMapItem(vector pos, float isize, float tsize, string map, strin
        }
        else
        {
-               if(precache_pic(pic) == "")
+               if(drawgetimagesize(pic) == '0 0 0')
                        drawpic(pos, draw_UseSkinFor("nopreview_map"), img_size, '1 1 1', theAlpha, DRAWFLAG_NORMAL);
                else
                        drawpic(pos, pic, img_size, '1 1 1', theAlpha, DRAWFLAG_NORMAL);