mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Some minor cleanup for readability
This commit is contained in:
@ -300,7 +300,7 @@ std::string plAvBrainCritter::BehaviorName(int behavior) const
|
||||
plString plAvBrainCritter::AnimationName(int behavior) const
|
||||
{
|
||||
if ((behavior >= fBehaviors.Count()) || (behavior < 0))
|
||||
return plString();
|
||||
return "";
|
||||
return ((CritterBehavior*)fBehaviors[behavior])->AnimName();
|
||||
}
|
||||
|
||||
|
@ -1104,7 +1104,7 @@ int plNetMsgMemberUpdate::IPokeBuffer(hsStream* stream, uint32_t peekOptions)
|
||||
if (bytes)
|
||||
{
|
||||
// FIX ME to something nice
|
||||
fMemberInfo.GetClientGuid()->SetClientKey(plString());
|
||||
fMemberInfo.GetClientGuid()->SetClientKey("");
|
||||
fMemberInfo.GetClientGuid()->SetAccountUUID(plUUID());
|
||||
fMemberInfo.Poke(stream, peekOptions);
|
||||
stream->WriteByte(fAddMember);
|
||||
|
@ -505,7 +505,7 @@ int plNetMsgMemberListHelper::Poke(hsStream* stream, const uint32_t peekOptions)
|
||||
int i;
|
||||
for(i=0;i<numMembers;i++)
|
||||
{
|
||||
fMembers[i]->GetClientGuid()->SetClientKey(plString());
|
||||
fMembers[i]->GetClientGuid()->SetClientKey("");
|
||||
fMembers[i]->GetClientGuid()->SetAccountUUID(plUUID());
|
||||
fMembers[i]->Poke(stream, peekOptions);
|
||||
}
|
||||
|
@ -264,12 +264,12 @@ void plKeyFinder::IGetNames(std::vector<plString>& names, const plString& search
|
||||
|
||||
void plKeyFinder::GetResponderNames(std::vector<plString>& names)
|
||||
{
|
||||
IGetNames(names, plString(), CLASS_INDEX_SCOPED(plResponderModifier));
|
||||
IGetNames(names, "", CLASS_INDEX_SCOPED(plResponderModifier));
|
||||
}
|
||||
|
||||
void plKeyFinder::GetActivatorNames(std::vector<plString>& names)
|
||||
{
|
||||
IGetNames(names, plString(), CLASS_INDEX_SCOPED(plLogicModifier));
|
||||
IGetNames(names, "", CLASS_INDEX_SCOPED(plLogicModifier));
|
||||
}
|
||||
|
||||
class plKeyFinderIterator : public plRegistryKeyIterator, public plRegistryPageIterator
|
||||
|
@ -921,7 +921,7 @@ plKey plResManager::ICloneKey(const plUoid& objUoid, uint32_t playerID, uint32_t
|
||||
fCurCloneID = cloneID;
|
||||
fCurClonePlayerID = playerID;
|
||||
|
||||
plKey cloneKey = ReRegister(plString(), objUoid);
|
||||
plKey cloneKey = ReRegister("", objUoid);
|
||||
|
||||
fCurClonePlayerID = 0;
|
||||
fCurCloneID = 0;
|
||||
@ -1272,7 +1272,7 @@ public:
|
||||
{
|
||||
if (stricmp(page->GetPageInfo().GetAge(), fAgeName) == 0)
|
||||
{
|
||||
plUoid uoid(page->GetPageInfo().GetLocation(), 0, plString());
|
||||
plUoid uoid(page->GetPageInfo().GetLocation(), 0, "");
|
||||
fLocations.push_back(uoid.GetLocation());
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user