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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user