mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-21 12:49:10 +00:00
Add more temporary hack macros to help speed up conversion and testing
This commit is contained in:
@ -932,23 +932,23 @@ UInt8 plNetLinkingMgr::IPreProcessLink(void)
|
||||
if (!info->HasAgeUserDefinedName())
|
||||
{
|
||||
// set user-defined name
|
||||
std::string title;
|
||||
unsigned nameLen = StrLen(nc->GetPlayerName());
|
||||
if (nc->GetPlayerName()[nameLen - 1] == 's' || nc->GetPlayerName()[nameLen - 1] == 'S')
|
||||
xtl::format(title, "%s'", nc->GetPlayerName());
|
||||
plString title;
|
||||
unsigned nameLen = nc->GetPlayerName().GetSize();
|
||||
if (nc->GetPlayerName().CharAt(nameLen - 1) == 's' || nc->GetPlayerName().CharAt(nameLen - 1) == 'S')
|
||||
title = plString::Format("%s'", nc->GetPlayerName());
|
||||
else
|
||||
xtl::format(title, "%s's", nc->GetPlayerName());
|
||||
info->SetAgeUserDefinedName(title.c_str());
|
||||
title = plString::Format("%s's", nc->GetPlayerName());
|
||||
info->SetAgeUserDefinedName(_TEMP_CONVERT_TO_CONST_CHAR(title));
|
||||
}
|
||||
if (!info->HasAgeDescription())
|
||||
{
|
||||
// set description
|
||||
std::string desc;
|
||||
unsigned nameLen = StrLen(nc->GetPlayerName());
|
||||
if (nc->GetPlayerName()[nameLen - 1] == 's' || nc->GetPlayerName()[nameLen - 1] == 'S')
|
||||
xtl::format(desc, "%s' %s", nc->GetPlayerName(), info->GetAgeInstanceName());
|
||||
plString desc;
|
||||
unsigned nameLen = nc->GetPlayerName().GetSize();
|
||||
if (nc->GetPlayerName().CharAt(nameLen - 1) == 's' || nc->GetPlayerName().CharAt(nameLen - 1) == 'S')
|
||||
desc = plString::Format("%s' %s", nc->GetPlayerName().c_str(), info->GetAgeInstanceName());
|
||||
else
|
||||
xtl::format(desc, "%s's %s", nc->GetPlayerName(), info->GetAgeInstanceName());
|
||||
desc = plString::Format("%s's %s", nc->GetPlayerName().c_str(), info->GetAgeInstanceName());
|
||||
info->SetAgeDescription(desc.c_str());
|
||||
}
|
||||
if (!info->HasAgeInstanceGuid()) {
|
||||
@ -970,25 +970,25 @@ UInt8 plNetLinkingMgr::IPreProcessLink(void)
|
||||
if (!info->HasAgeUserDefinedName())
|
||||
{
|
||||
// set user-defined name
|
||||
std::string title;
|
||||
unsigned nameLen = StrLen(nc->GetPlayerName());
|
||||
if (nc->GetPlayerName()[nameLen - 1] == 's' || nc->GetPlayerName()[nameLen - 1] == 'S')
|
||||
xtl::format(title, "%s'", nc->GetPlayerName());
|
||||
plString title;
|
||||
unsigned nameLen = nc->GetPlayerName().GetSize();
|
||||
if (nc->GetPlayerName().CharAt(nameLen - 1) == 's' || nc->GetPlayerName().CharAt(nameLen - 1) == 'S')
|
||||
title = plString::Format("%s'", nc->GetPlayerName().c_str());
|
||||
else
|
||||
xtl::format(title, "%s's", nc->GetPlayerName());
|
||||
info->SetAgeUserDefinedName(title.c_str());
|
||||
title = plString::Format("%s's", nc->GetPlayerName().c_str());
|
||||
info->SetAgeUserDefinedName(_TEMP_CONVERT_TO_CONST_CHAR(title));
|
||||
}
|
||||
|
||||
if (!info->HasAgeDescription())
|
||||
{
|
||||
// set description
|
||||
std::string desc;
|
||||
unsigned nameLen = StrLen(nc->GetPlayerName());
|
||||
if (nc->GetPlayerName()[nameLen - 1] == 's' || nc->GetPlayerName()[nameLen - 1] == 'S')
|
||||
xtl::format(desc, "%s' %s", nc->GetPlayerName(), info->GetAgeInstanceName());
|
||||
plString desc;
|
||||
unsigned nameLen = nc->GetPlayerName().GetSize();
|
||||
if (nc->GetPlayerName().CharAt(nameLen - 1) == 's' || nc->GetPlayerName().CharAt(nameLen - 1) == 'S')
|
||||
desc = plString::Format("%s' %s", nc->GetPlayerName().c_str(), info->GetAgeInstanceName());
|
||||
else
|
||||
xtl::format(desc, "%s's %s", nc->GetPlayerName(), info->GetAgeInstanceName());
|
||||
info->SetAgeDescription( desc.c_str() );
|
||||
desc = plString::Format("%s's %s", nc->GetPlayerName().c_str(), info->GetAgeInstanceName());
|
||||
info->SetAgeDescription( _TEMP_CONVERT_TO_CONST_CHAR(desc) );
|
||||
}
|
||||
|
||||
if (!info->HasAgeInstanceGuid()) {
|
||||
|
Reference in New Issue
Block a user