mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Moved generation of new rumors to server
This commit is contained in:
@@ -658,11 +658,11 @@ std::string CGameInfoCallback::getTavernRumor(const CGObjectInstance * townOrTav
|
||||
text.appendLocalString(EMetaText::GENERAL_TXT, 216);
|
||||
|
||||
std::string extraText;
|
||||
if(gs->rumor.type == RumorState::TYPE_NONE)
|
||||
if(gs->currentRumor.type == RumorState::TYPE_NONE)
|
||||
return text.toString();
|
||||
|
||||
auto rumor = gs->rumor.last[gs->rumor.type];
|
||||
switch(gs->rumor.type)
|
||||
auto rumor = gs->currentRumor.last[gs->currentRumor.type];
|
||||
switch(gs->currentRumor.type)
|
||||
{
|
||||
case RumorState::TYPE_SPECIAL:
|
||||
text.replaceLocalString(EMetaText::GENERAL_TXT, rumor.first);
|
||||
|
||||
Reference in New Issue
Block a user