1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Rumors: avoid repeating of same rumor twice in a row

Multiple rumors of same type can go in a row, but not identical rumors.
This commit is contained in:
ArseniyShestakov
2015-12-01 02:14:11 +03:00
parent 98582d628c
commit 15273ac0f7
3 changed files with 62 additions and 44 deletions

View File

@@ -575,7 +575,7 @@ std::string CGameInfoCallback::getTavernRumor(const CGObjectInstance * townOrTav
switch(gs->rumor.type)
{
case RumorState::RUMOR_STATS:
text = boost::str(boost::format(VLC->generaltexth->allTexts[rumor.first]) % VLC->generaltexth->colors[rumor.second]);
text = boost::str(boost::format(VLC->generaltexth->allTexts[rumor.first]) % VLC->generaltexth->capColors[rumor.second]);
break;
case RumorState::RUMOR_MAP: