Semantics

This commit is contained in:
EmosewaMC 2022-03-30 20:33:50 -07:00
parent 061d2b394c
commit 002025231e

View File

@ -1,13 +1,15 @@
#include <CDPropertyEntranceComponentTable.h> #include "PropertyEntranceComponent.h"
#include "PropertyEntranceComponent.h"
#include <CDPropertyEntranceComponentTable.h>
#include "Character.h"
#include "Database.h"
#include "GameMessages.h"
#include "PropertyManagementComponent.h"
#include "PropertySelectQueryProperty.h" #include "PropertySelectQueryProperty.h"
#include "RocketLaunchpadControlComponent.h" #include "RocketLaunchpadControlComponent.h"
#include "Character.h"
#include "GameMessages.h"
#include "dLogger.h"
#include "Database.h"
#include "PropertyManagementComponent.h"
#include "UserManager.h" #include "UserManager.h"
#include "dLogger.h"
PropertyEntranceComponent::PropertyEntranceComponent(uint32_t componentID, Entity* parent) : Component(parent) PropertyEntranceComponent::PropertyEntranceComponent(uint32_t componentID, Entity* parent) : Component(parent)
{ {
@ -201,12 +203,9 @@ void PropertyEntranceComponent::OnPropertyEntranceSync(Entity* entity, bool incl
propertyLookup->setInt(7, numResults); propertyLookup->setInt(7, numResults);
propertyLookup->setInt(8, startIndex); propertyLookup->setInt(8, startIndex);
Game::logger->Log("PropertyEntranceComponent", "Property query is \n%s\n. Entity is %s.\n", query.c_str(), entity->GetGMLevel() >= GAME_MASTER_LEVEL_LEAD_MODERATOR ? "a moderator" : "not a moderator");
auto propertyEntry = propertyLookup->executeQuery(); auto propertyEntry = propertyLookup->executeQuery();
while (propertyEntry->next()) while (propertyEntry->next()) {
{
const auto propertyId = propertyEntry->getUInt64(1); const auto propertyId = propertyEntry->getUInt64(1);
const auto owner = propertyEntry->getInt(2); const auto owner = propertyEntry->getInt(2);
const auto cloneId = propertyEntry->getUInt64(4); const auto cloneId = propertyEntry->getUInt64(4);
@ -235,8 +234,7 @@ void PropertyEntranceComponent::OnPropertyEntranceSync(Entity* entity, bool incl
Game::logger->Log("PropertyEntranceComponent", "Failed to find property owner name for %llu!\n", cloneId); Game::logger->Log("PropertyEntranceComponent", "Failed to find property owner name for %llu!\n", cloneId);
continue; continue;
} } else {
else {
isOwned = cloneId == character->GetPropertyCloneID(); isOwned = cloneId == character->GetPropertyCloneID();
ownerName = nameResult->getString(1).asStdString(); ownerName = nameResult->getString(1).asStdString();
} }