mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Merge pull request #251 from dpogue/plresmgr-strings
Convert plRegistryNode stuff to plString.
This commit is contained in:
@ -990,7 +990,7 @@ void plClient::SetHoldLoadRequests(bool hold)
|
||||
void plClient::IQueueRoomLoad(const std::vector<plLocation>& locs, bool hold)
|
||||
{
|
||||
bool allSameAge = true;
|
||||
const char* lastAgeName = nil;
|
||||
plString lastAgeName;
|
||||
|
||||
uint32_t numRooms = 0;
|
||||
for (int i = 0; i < locs.size(); i++)
|
||||
@ -1006,9 +1006,9 @@ void plClient::IQueueRoomLoad(const std::vector<plLocation>& locs, bool hold)
|
||||
if (!info)
|
||||
hsStatusMessageF("Ignoring LoadRoom request for location 0x%x because we can't find the location", loc.GetSequenceNumber());
|
||||
else if (alreadyLoaded)
|
||||
hsStatusMessageF("Ignoring LoadRoom request for %s-%s, since room is already loaded", info->GetAge(), info->GetPage());
|
||||
hsStatusMessageF("Ignoring LoadRoom request for %s-%s, since room is already loaded", info->GetAge().c_str(), info->GetPage().c_str());
|
||||
else if (isLoading)
|
||||
hsStatusMessageF("Ignoring LoadRoom request for %s-%s, since room is currently loading", info->GetAge(), info->GetPage());
|
||||
hsStatusMessageF("Ignoring LoadRoom request for %s-%s, since room is currently loading", info->GetAge().c_str(), info->GetPage().c_str());
|
||||
#endif
|
||||
|
||||
continue;
|
||||
@ -1016,7 +1016,7 @@ void plClient::IQueueRoomLoad(const std::vector<plLocation>& locs, bool hold)
|
||||
|
||||
fLoadRooms.push_back(new LoadRequest(loc, hold));
|
||||
|
||||
if (!lastAgeName || strcmp(info->GetAge(), lastAgeName) == 0)
|
||||
if (lastAgeName.IsNull() || info->GetAge() == lastAgeName)
|
||||
lastAgeName = info->GetAge();
|
||||
else
|
||||
allSameAge = false;
|
||||
|
Reference in New Issue
Block a user