X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmapvoting.qc;h=7c3d803527d1e41ccc1a2630a8a94249beaff8c2;hb=c624e64397b1ac7cbe3b2128a732d2f762443db3;hp=9e6f6395b26750d003b8bf744a72ccf45332ec0c;hpb=07129f4648e5573178f4280fe6e81dd1bd5e2276;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index 9e6f6395b..7c3d80352 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -512,6 +512,17 @@ void MapVote_Draw() else DrawItem(pos + MapVote_GridVec(dist, i, mv_columns), dist.y, dist.x, map, "", tmp, i); } + + if(mv_abstain) + ++mv_num_maps; + + if(mv_abstain && i < mv_num_maps) { + tmp = mv_votes[i]; + pos.y = ymax + abstain_spacing; + pos.x = (xmax + xmin) * 0.5; + MapVote_DrawAbstain(pos, dist.x, xmax - xmin, tmp, i); + } + if (mv_winner) { // expand winner map image @@ -536,16 +547,6 @@ void MapVote_Draw() MapVote_DrawMapPicture(mv_pics[mv_winner - 1], img_pos, img_size, theAlpha); } - - if(mv_abstain) - ++mv_num_maps; - - if(mv_abstain && i < mv_num_maps) { - tmp = mv_votes[i]; - pos.y = ymax + abstain_spacing; - pos.x = (xmax+xmin)*0.5; - MapVote_DrawAbstain(pos, dist.x, xmax - xmin, tmp, i); - } } void Cmd_MapVote_MapDownload(int argc)