1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-05 18:27:47 +00:00

More refactoring and linux compile fix

This commit is contained in:
Mordred 2018-11-03 00:47:45 +01:00
parent 6347d7ed27
commit c7cb95175d
5 changed files with 8 additions and 7 deletions

View file

@ -756,7 +756,6 @@ namespace Core::Common
uint32_t fcIconColor; // 16
uint16_t housePart[ 8 ]; // 34
uint8_t color[ 8 ]; // 36
//44
};
struct HousePermissionSet
@ -794,6 +793,7 @@ namespace Core::Common
fcHouse,
privateHouse
};
enum HouseIconAdd : uint8_t
{
heart = 0x06

View file

@ -14,7 +14,7 @@ public:
void Scene00000( Entity::Player& player )
{
player.playScene( getId(), 0, HIDE_HOTBAR, 0, 1 );
player.playScene( getId(), 0, HIDE_HOTBAR, 0, 0 );
}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override

View file

@ -44,6 +44,7 @@ Core::Land::~Land()
void Core::Land::load()
{
// setPreset( 262145 );
/* auto pDb = g_fw.get< Db::DbWorkerPool< Db::ZoneDbConnection > >();
auto res = pDb->query( "SELECT * FROM land WHERE Id = " + std::to_string( m_landKey ) );
if( !res->next() )
@ -199,7 +200,7 @@ uint32_t Core::Land::getLandKey()
return m_landKey;
}
LandStruct Core::Land::getLand()
const LandStruct& Core::Land::getLand()
{
return m_land;
}
@ -209,7 +210,7 @@ uint32_t Core::Land::getMaxItems()
return m_maxItems;
}
void Core::Land::Init()
void Core::Land::init()
{

View file

@ -50,12 +50,12 @@ namespace Core
void onUpdate();
uint32_t getLandKey();
Common::LandStruct getLand();
const Common::LandStruct& getLand();
uint32_t getMaxItems();
private:
uint16_t convertItemIdToHousingItemId( uint16_t itemId );
void Init();
void init();
uint32_t m_landKey;
uint8_t m_wardNum;