From: MirceaKitsune Date: Tue, 28 Sep 2010 13:35:45 +0000 (+0300) Subject: Fix campaign entries getting cut when a new level is unlocked (forgotten change) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c5f2d9a7ba261d12c37a6ab2ab0cc9216d2542d2;p=voretournament%2Fvoretournament.git Fix campaign entries getting cut when a new level is unlocked (forgotten change) --- diff --git a/data/qcsrc/menu/voret/campaign.c b/data/qcsrc/menu/voret/campaign.c index 4beadfef..0cd52c41 100644 --- a/data/qcsrc/menu/voret/campaign.c +++ b/data/qcsrc/menu/voret/campaign.c @@ -125,7 +125,7 @@ void loadCvarsVoretCampaignList(entity me) me.campaignIndex = bound(0, cvar(me.cvarName), campaign_entries); cvar_set(me.cvarName, ftos(me.campaignIndex)); if(me.columnNameSize) - rewrapCampaign(me.columnNameSize, me.rowsPerItem - 3, me.emptyLineHeight, me.realFontSize); + rewrapCampaign(me.columnNameSize, me.rowsPerItem - 2, me.emptyLineHeight, me.realFontSize); me.nItems = min(me.campaignIndex + 2, campaign_entries); me.selectedItem = min(me.campaignIndex, me.nItems - 1); me.scrollPos = me.nItems * me.itemHeight - 1;