forked from Mirrorlandia_minetest/minetest
Remove unused m_wielded_item_not_sent
This commit is contained in:
parent
7e56637ed0
commit
038d3a31df
@ -718,7 +718,6 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, Player *player_, u16 peer_id_,
|
|||||||
// public
|
// public
|
||||||
m_moved(false),
|
m_moved(false),
|
||||||
m_inventory_not_sent(false),
|
m_inventory_not_sent(false),
|
||||||
m_wielded_item_not_sent(false),
|
|
||||||
m_physics_override_speed(1),
|
m_physics_override_speed(1),
|
||||||
m_physics_override_jump(1),
|
m_physics_override_jump(1),
|
||||||
m_physics_override_gravity(1),
|
m_physics_override_gravity(1),
|
||||||
@ -924,12 +923,6 @@ void PlayerSAO::step(float dtime, bool send_recommended)
|
|||||||
m_messages_out.push_back(aom);
|
m_messages_out.push_back(aom);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_wielded_item_not_sent)
|
|
||||||
{
|
|
||||||
m_wielded_item_not_sent = false;
|
|
||||||
// GenericCAO has no special way to show this
|
|
||||||
}
|
|
||||||
|
|
||||||
if(m_armor_groups_sent == false) {
|
if(m_armor_groups_sent == false) {
|
||||||
m_armor_groups_sent = true;
|
m_armor_groups_sent = true;
|
||||||
std::string str = gob_cmd_update_armor_groups(
|
std::string str = gob_cmd_update_armor_groups(
|
||||||
@ -1186,10 +1179,8 @@ int PlayerSAO::getWieldIndex() const
|
|||||||
|
|
||||||
void PlayerSAO::setWieldIndex(int i)
|
void PlayerSAO::setWieldIndex(int i)
|
||||||
{
|
{
|
||||||
if(i != m_wield_index)
|
if(i != m_wield_index) {
|
||||||
{
|
|
||||||
m_wield_index = i;
|
m_wield_index = i;
|
||||||
m_wielded_item_not_sent = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -318,7 +318,6 @@ public:
|
|||||||
// Some flags used by Server
|
// Some flags used by Server
|
||||||
bool m_moved;
|
bool m_moved;
|
||||||
bool m_inventory_not_sent;
|
bool m_inventory_not_sent;
|
||||||
bool m_wielded_item_not_sent;
|
|
||||||
|
|
||||||
float m_physics_override_speed;
|
float m_physics_override_speed;
|
||||||
float m_physics_override_jump;
|
float m_physics_override_jump;
|
||||||
|
@ -1386,7 +1386,6 @@ void Server::setInventoryModified(const InventoryLocation &loc)
|
|||||||
if(!playersao)
|
if(!playersao)
|
||||||
return;
|
return;
|
||||||
playersao->m_inventory_not_sent = true;
|
playersao->m_inventory_not_sent = true;
|
||||||
playersao->m_wielded_item_not_sent = true;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case InventoryLocation::NODEMETA:
|
case InventoryLocation::NODEMETA:
|
||||||
|
Loading…
Reference in New Issue
Block a user