Skip to content

Commit

Permalink
[Cleanup] Remove m_inuse, m_z, and m_heading from object.h (#3083)
Browse files Browse the repository at this point in the history
# Notes
- These are unsued.
  • Loading branch information
Kinglykrab committed Mar 17, 2023
1 parent 3624307 commit 232b102
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions zone/object.cpp
Expand Up @@ -53,7 +53,6 @@ Object::Object(uint32 id, uint32 type, uint32 icon, const Object_Struct& object,
m_id = id;
m_type = type;
m_icon = icon;
m_inuse = false;
m_inst = nullptr;
m_ground_spawn=false;
// Copy object data
Expand Down Expand Up @@ -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_type = OT_DROPPEDITEM;
m_icon = 0;
m_inuse = false;
m_ground_spawn = true;
decay_timer.Disable();
// Set as much struct data as we can
Expand Down Expand Up @@ -122,7 +120,6 @@ Object::Object(Client* client, const EQ::ItemInstance* inst)
m_inst = (inst) ? inst->Clone() : nullptr;
m_type = OT_DROPPEDITEM;
m_icon = 0;
m_inuse = false;
m_ground_spawn = false;
// Set as much struct data as we can
memset(&m_data, 0, sizeof(Object_Struct));
Expand Down Expand Up @@ -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_type = OT_DROPPEDITEM;
m_icon = 0;
m_inuse = false;
m_ground_spawn = false;
// Set as much struct data as we can
memset(&m_data, 0, sizeof(Object_Struct));
Expand Down Expand Up @@ -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_type = type;
m_icon = 0;
m_inuse = false;
m_ground_spawn = false;
// Set as much struct data as we can
memset(&m_data, 0, sizeof(Object_Struct));
Expand Down Expand Up @@ -372,7 +367,6 @@ void Object::PutItem(uint8 index, const EQ::ItemInstance* inst)
}

void Object::Close() {
m_inuse = false;
if(user != nullptr)
{
last_user = user;
Expand Down Expand Up @@ -462,7 +456,6 @@ bool Object::Process(){
}

if (user != nullptr && !entity_list.GetClientByCharID(user->CharacterID())) {
m_inuse = false;
last_user = user;
user->SetTradeskillObject(nullptr);
user = nullptr;
Expand Down Expand Up @@ -643,7 +636,6 @@ bool Object::HandleClick(Client* sender, const ClickObject_Struct* click_object)
return(false);

// Starting to use this object
m_inuse = true;
sender->SetTradeskillObject(this);

user = sender;
Expand Down
3 changes: 0 additions & 3 deletions zone/object.h
Expand Up @@ -183,16 +183,13 @@ class Object: public Entity

Object_Struct m_data; // Packet data
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_type; // Object Type, ie, forge, oven, dropped item, etc (ref: ContainerUseTypes)
uint32 m_icon; // Icon to use for forge, oven, etc
float m_max_x;
float m_max_y;
float m_min_x;
float m_min_y;
float m_z;
float m_heading;
bool m_ground_spawn;
char m_display_name[64];

Expand Down

0 comments on commit 232b102

Please sign in to comment.