|
|
@ -439,7 +439,6 @@ void CGameContextMenu::update()
|
|
|
|
string continent = ContinentMngr.cur()->SheetName;
|
|
|
|
string continent = ContinentMngr.cur()->SheetName;
|
|
|
|
sint8 fameValue = 0;
|
|
|
|
sint8 fameValue = 0;
|
|
|
|
uint fameIndex;
|
|
|
|
uint fameIndex;
|
|
|
|
nlinfo("continent = %s", continent.c_str());
|
|
|
|
|
|
|
|
if (continent == "matis.continent")
|
|
|
|
if (continent == "matis.continent")
|
|
|
|
fameIndex = CStaticFames::getInstance().getFactionIndex("matis");
|
|
|
|
fameIndex = CStaticFames::getInstance().getFactionIndex("matis");
|
|
|
|
else if (continent == "fyros.continent")
|
|
|
|
else if (continent == "fyros.continent")
|
|
|
@ -455,7 +454,6 @@ void CGameContextMenu::update()
|
|
|
|
if (pLeafFame != NULL)
|
|
|
|
if (pLeafFame != NULL)
|
|
|
|
fameValue = pLeafFame->getValue8();
|
|
|
|
fameValue = pLeafFame->getValue8();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
nlinfo("fame = %d", fameValue);
|
|
|
|
|
|
|
|
if (_TextNews)
|
|
|
|
if (_TextNews)
|
|
|
|
_TextNews->setActive(selection && !canAttack() && !selection->isForageSource() && fameValue >= -30);
|
|
|
|
_TextNews->setActive(selection && !canAttack() && !selection->isForageSource() && fameValue >= -30);
|
|
|
|
|
|
|
|
|
|
|
|