X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fclient%2Fmapvoting.qc;h=192817bbc149b4ed26e25fb0c39782cb8ee4fb14;hb=3b929d79b6e24a73e319488cfb56379762b46ac5;hp=7aad4c4ffdd77b543bee03f612b6fe67e85a02f2;hpb=f879dea04474678d9a263cf5d8c127415e390ca5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index 7aad4c4ff..192817bbc 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -28,6 +28,8 @@ string MapVote_FormatMapItem(float id, string map, float count, float maxwidth, post = _(" (1 vote)"); else if(count >= 0) post = sprintf(_(" (%d votes)"), count); + else + post = ""; } else post = ""; @@ -50,7 +52,7 @@ vector MapVote_RGB(float id, float count) void MapVote_DrawMapItem(vector pos, float isize, float tsize, string map, string pic, float count, float id) { - vector img_size; + vector img_size = '0 0 0'; vector rgb; string label; float text_size; @@ -169,7 +171,7 @@ void MapVote_Draw() float center; float columns, rows; float tsize; - vector dist; + vector dist = '0 0 0'; if(!mv_active) return;