core/MenuManager.cpp
changeset 960 fad7c45dacf5
parent 884 a5f3239cef1a
child 962 2ed832eea89d
     1.1 --- a/core/MenuManager.cpp	Sat Jun 16 21:42:05 2007 +0000
     1.2 +++ b/core/MenuManager.cpp	Sat Jun 16 21:56:12 2007 +0000
     1.3 @@ -126,6 +126,7 @@
     1.4  	 */
     1.5  	unsigned int dup_array[256];
     1.6  
     1.7 +	unsigned int total = m_Votes[0];
     1.8  	for (size_t i=1; i<m_Items; i++)
     1.9  	{
    1.10  		if (m_Votes[i] > m_Votes[highest])
    1.11 @@ -141,6 +142,7 @@
    1.12  			 */
    1.13  			dup_array[dup_count++] = i;
    1.14  		}
    1.15 +		total += m_Votes[i];
    1.16  	}
    1.17  
    1.18  	/* Check if we need to pick from the duplicate list */
    1.19 @@ -160,7 +162,7 @@
    1.20  	}
    1.21  
    1.22  picked_item:
    1.23 -	m_pHandler->OnMenuVoteEnd(m_pCurMenu, chosen);
    1.24 +	m_pHandler->OnMenuVoteEnd(m_pCurMenu, chosen, m_Votes[highest], total);
    1.25  	m_pHandler->OnMenuEnd(m_pCurMenu);
    1.26  	InternalReset();
    1.27  }