View Full Version : UN Bug


The Great Apple
Aug 30, 2006, 08:42 AM
Impaler - your vote modifier trait seems to disable the UN if not used. The vote modifier defaults to zero, which means that each player gets 0 votes.

Impaler[WrG]
Aug 30, 2006, 04:16 PM
I'll look into that right away. Yep I can reproduce it, I probably forgot to add 100 to the base return value of the vote modifier resulting in multiplication by 0. Yep that was it, just change this function

int CvPlayer::getVoteModifier()

FROM {return m_iVoteModifier;} TO {return m_iVoteModifier + 100;}

And all should be good, sorry about that, I though I remembered fixing that bug at some point, maybe I forgot to commit it to the CVS