Changed: #878 Fix typos in comments/code
This commit is contained in:
parent
b72d16c806
commit
b2cbd99d00
2 changed files with 10 additions and 7 deletions
|
@ -370,7 +370,7 @@ int main(int argc, char **argv)
|
|||
"document settings"..... Force the path to be the path of the exe
|
||||
*/
|
||||
{
|
||||
#ifdef NL_FINAL_VERSION
|
||||
#ifdef FINAL_VERSION
|
||||
char str[4096];
|
||||
uint len= GetModuleFileName(NULL, str, 4096);
|
||||
if(len && len<4096)
|
||||
|
@ -380,7 +380,7 @@ int main(int argc, char **argv)
|
|||
// if(!path.empty())
|
||||
// CPath::setCurrentPath(path.c_str());
|
||||
}
|
||||
#endif // NL_FINAL_VERSION
|
||||
#endif // FINAL_VERSION
|
||||
}
|
||||
|
||||
string sCmdLine = cmdline;
|
||||
|
@ -389,7 +389,10 @@ int main(int argc, char **argv)
|
|||
{
|
||||
HANDLE mutex = CreateMutex (NULL, false, "RyzomClient");
|
||||
if (mutex && GetLastError() == ERROR_ALREADY_EXISTS)
|
||||
exit (0);
|
||||
{
|
||||
delete appContext;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
initCrashReport ();
|
||||
|
|
|
@ -2194,9 +2194,9 @@ void CUserEntity::setDead() // virtual
|
|||
// get player's kami fame
|
||||
CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
||||
sint8 kamiFame = 0;
|
||||
uint kamiFameIndex = CStaticFames::getInstance().getFactionIndex("kami");
|
||||
uint kamiFameIndex = CStaticFames::getInstance().getFactionIndex("kami");
|
||||
if (pIM && kamiFameIndex != CStaticFames::INVALID_FACTION_INDEX)
|
||||
{
|
||||
{
|
||||
CCDBNodeLeaf *pLeafKamiFame = pIM->getDbProp(toString("SERVER:FAME:PLAYER%d:VALUE", kamiFameIndex - 1), false);
|
||||
if (pLeafKamiFame != NULL)
|
||||
kamiFame = pLeafKamiFame->getValue8();
|
||||
|
@ -2210,8 +2210,8 @@ void CUserEntity::setDead() // virtual
|
|||
CCDBNodeLeaf *pLeafKaravanFame = pIM->getDbProp(toString("SERVER:FAME:PLAYER%d:VALUE", karavanFameIndex - 1), false);
|
||||
if (pLeafKaravanFame != NULL)
|
||||
karavanFame = pLeafKaravanFame->getValue8();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// set loading background depending on player's faction fame
|
||||
if (kamiFame > karavanFame)
|
||||
LoadingBackground = ResurectKamiBackground;
|
||||
|
|
Loading…
Reference in a new issue