From b6991d384c75b8679c2d5ebaf3670d323f9a0f21 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 13 Feb 2013 18:43:47 -0500 Subject: [PATCH] Fix crazy stupid --- Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp b/Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp index a0f9bbd2..bd5651ff 100644 --- a/Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp +++ b/Sources/Plasma/PubUtilLib/plNetClient/plNetLinkingMgr.cpp @@ -958,7 +958,7 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void) // set user-defined name plString title; unsigned nameLen = nc->GetPlayerName().GetSize(); - if (nc->GetPlayerName().CharAt(nameLen - 1) == 's' || nc->GetPlayerName().CharAt(nameLen - 1) == 'S') + if (nc->GetPlayerName().ToLower().CharAt(nameLen - 1) == 's') title = plString::Format("%s'", nc->GetPlayerName().c_str()); else title = plString::Format("%s's", nc->GetPlayerName().c_str()); @@ -969,7 +969,7 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void) // set description plString desc; unsigned nameLen = nc->GetPlayerName().GetSize(); - if (nc->GetPlayerName().CharAt(nameLen - 1) == 's' || nc->GetPlayerName().CharAt(nameLen - 1) == 'S') + if (nc->GetPlayerName().ToLower().CharAt(nameLen - 1) == 's') desc = plString::Format("%s' %s", nc->GetPlayerName().c_str(), info->GetAgeInstanceName()); else desc = plString::Format("%s's %s", nc->GetPlayerName().c_str(), info->GetAgeInstanceName()); @@ -997,7 +997,7 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void) // set user-defined name plString title; unsigned nameLen = nc->GetPlayerName().GetSize(); - if (nc->GetPlayerName().CharAt(nameLen - 1) == 's' || nc->GetPlayerName().CharAt(nameLen - 1) == 'S') + if (nc->GetPlayerName().ToLower().CharAt(nameLen - 1) == 's') title = plString::Format("%s'", nc->GetPlayerName().c_str()); else title = plString::Format("%s's", nc->GetPlayerName().c_str()); @@ -1009,7 +1009,7 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void) // set description plString desc; unsigned nameLen = nc->GetPlayerName().GetSize(); - if (nc->GetPlayerName().CharAt(nameLen - 1) == 's' || nc->GetPlayerName().CharAt(nameLen - 1) == 'S') + if (nc->GetPlayerName().ToLower().CharAt(nameLen - 1) == 's') desc = plString::Format("%s' %s", nc->GetPlayerName().c_str(), info->GetAgeInstanceName()); else desc = plString::Format("%s's %s", nc->GetPlayerName().c_str(), info->GetAgeInstanceName());