[Cleanup] Remove m_inuse, m_z, and m_heading from object.h (#3083)

# Notes
- These are unsued.
This commit is contained in:
Alex King 2023-03-16 21:47:27 -04:00 committed by GitHub
parent 3624307385
commit 232b1028d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 11 deletions

View File

@ -53,7 +53,6 @@ Object::Object(uint32 id, uint32 type, uint32 icon, const Object_Struct& object,
m_id = id; m_id = id;
m_type = type; m_type = type;
m_icon = icon; m_icon = icon;
m_inuse = false;
m_inst = nullptr; m_inst = nullptr;
m_ground_spawn=false; m_ground_spawn=false;
// Copy object data // Copy object data
@ -90,7 +89,6 @@ Object::Object(const EQ::ItemInstance* inst, char* name,float max_x,float min_x,
m_inst = (inst) ? inst->Clone() : nullptr; m_inst = (inst) ? inst->Clone() : nullptr;
m_type = OT_DROPPEDITEM; m_type = OT_DROPPEDITEM;
m_icon = 0; m_icon = 0;
m_inuse = false;
m_ground_spawn = true; m_ground_spawn = true;
decay_timer.Disable(); decay_timer.Disable();
// Set as much struct data as we can // Set as much struct data as we can
@ -122,7 +120,6 @@ Object::Object(Client* client, const EQ::ItemInstance* inst)
m_inst = (inst) ? inst->Clone() : nullptr; m_inst = (inst) ? inst->Clone() : nullptr;
m_type = OT_DROPPEDITEM; m_type = OT_DROPPEDITEM;
m_icon = 0; m_icon = 0;
m_inuse = false;
m_ground_spawn = false; m_ground_spawn = false;
// Set as much struct data as we can // Set as much struct data as we can
memset(&m_data, 0, sizeof(Object_Struct)); memset(&m_data, 0, sizeof(Object_Struct));
@ -186,7 +183,6 @@ Object::Object(const EQ::ItemInstance *inst, float x, float y, float z, float he
m_inst = (inst) ? inst->Clone() : nullptr; m_inst = (inst) ? inst->Clone() : nullptr;
m_type = OT_DROPPEDITEM; m_type = OT_DROPPEDITEM;
m_icon = 0; m_icon = 0;
m_inuse = false;
m_ground_spawn = false; m_ground_spawn = false;
// Set as much struct data as we can // Set as much struct data as we can
memset(&m_data, 0, sizeof(Object_Struct)); memset(&m_data, 0, sizeof(Object_Struct));
@ -245,7 +241,6 @@ Object::Object(const char *model, float x, float y, float z, float heading, uint
m_inst = (inst) ? inst->Clone() : nullptr; m_inst = (inst) ? inst->Clone() : nullptr;
m_type = type; m_type = type;
m_icon = 0; m_icon = 0;
m_inuse = false;
m_ground_spawn = false; m_ground_spawn = false;
// Set as much struct data as we can // Set as much struct data as we can
memset(&m_data, 0, sizeof(Object_Struct)); memset(&m_data, 0, sizeof(Object_Struct));
@ -372,7 +367,6 @@ void Object::PutItem(uint8 index, const EQ::ItemInstance* inst)
} }
void Object::Close() { void Object::Close() {
m_inuse = false;
if(user != nullptr) if(user != nullptr)
{ {
last_user = user; last_user = user;
@ -462,7 +456,6 @@ bool Object::Process(){
} }
if (user != nullptr && !entity_list.GetClientByCharID(user->CharacterID())) { if (user != nullptr && !entity_list.GetClientByCharID(user->CharacterID())) {
m_inuse = false;
last_user = user; last_user = user;
user->SetTradeskillObject(nullptr); user->SetTradeskillObject(nullptr);
user = nullptr; user = nullptr;
@ -643,7 +636,6 @@ bool Object::HandleClick(Client* sender, const ClickObject_Struct* click_object)
return(false); return(false);
// Starting to use this object // Starting to use this object
m_inuse = true;
sender->SetTradeskillObject(this); sender->SetTradeskillObject(this);
user = sender; user = sender;

View File

@ -183,7 +183,6 @@ protected:
Object_Struct m_data; // Packet data Object_Struct m_data; // Packet data
EQ::ItemInstance *m_inst; // Item representing object EQ::ItemInstance *m_inst; // Item representing object
bool m_inuse; // Currently in use by a client?
uint32 m_id; // Database key, different than drop_id uint32 m_id; // Database key, different than drop_id
uint32 m_type; // Object Type, ie, forge, oven, dropped item, etc (ref: ContainerUseTypes) uint32 m_type; // Object Type, ie, forge, oven, dropped item, etc (ref: ContainerUseTypes)
uint32 m_icon; // Icon to use for forge, oven, etc uint32 m_icon; // Icon to use for forge, oven, etc
@ -191,8 +190,6 @@ protected:
float m_max_y; float m_max_y;
float m_min_x; float m_min_x;
float m_min_y; float m_min_y;
float m_z;
float m_heading;
bool m_ground_spawn; bool m_ground_spawn;
char m_display_name[64]; char m_display_name[64];