Changed: fixed issue with bad continent names

storyline/s2e1
Ulukyn 5 years ago
parent b033942d36
commit 7f149563f6

@ -439,15 +439,17 @@ void CGameContextMenu::update()
string continent = ContinentMngr.cur()->SheetName; string continent = ContinentMngr.cur()->SheetName;
sint8 fameValue = 0; sint8 fameValue = 0;
uint fameIndex; uint fameIndex;
if (continent == "matis.continent") if (continent == "lesfalaises.continent")
fameIndex = CStaticFames::getInstance().getFactionIndex("matis"); fameIndex = CStaticFames::getInstance().getFactionIndex("matis");
else if (continent == "fyros.continent") else if (continent == "fyros.continent")
fameIndex = CStaticFames::getInstance().getFactionIndex("fyros"); fameIndex = CStaticFames::getInstance().getFactionIndex("fyros");
else if (continent == "tryker.continent") else if (continent == "tryker.continent")
fameIndex = CStaticFames::getInstance().getFactionIndex("tryker"); fameIndex = CStaticFames::getInstance().getFactionIndex("tryker");
else if (continent == "zorai.continent") else if (continent == "lepaysmalade.continent")
fameIndex = CStaticFames::getInstance().getFactionIndex("zorai"); fameIndex = CStaticFames::getInstance().getFactionIndex("zorai");
getFactionIndex("tryker"), CStaticFames::getInstance().getFactionIndex("zorai"));
if (fameIndex != CStaticFames::INVALID_FACTION_INDEX) if (fameIndex != CStaticFames::INVALID_FACTION_INDEX)
{ {
CCDBNodeLeaf *pLeafFame = NLGUI::CDBManager::getInstance()->getDbProp(toString("SERVER:FAME:PLAYER%d:VALUE", fameIndex), false); CCDBNodeLeaf *pLeafFame = NLGUI::CDBManager::getInstance()->getDbProp(toString("SERVER:FAME:PLAYER%d:VALUE", fameIndex), false);

Loading…
Cancel
Save