Remove unused m_wielded_item_not_sent
authorLoic Blot <loic.blot@unix-experience.fr>
Tue, 3 Mar 2015 16:36:54 +0000 (17:36 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Tue, 3 Mar 2015 16:36:54 +0000 (17:36 +0100)
src/content_sao.cpp
src/content_sao.h
src/server.cpp

index 26b721d39981030eb5e78fa53adb3e8b80ddac13..0600689e4b242c8124c93b8a85980e3a247ee24f 100644 (file)
@@ -718,7 +718,6 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, Player *player_, u16 peer_id_,
        // public
        m_moved(false),
        m_inventory_not_sent(false),
-       m_wielded_item_not_sent(false),
        m_physics_override_speed(1),
        m_physics_override_jump(1),
        m_physics_override_gravity(1),
@@ -924,13 +923,7 @@ void PlayerSAO::step(float dtime, bool send_recommended)
                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;
                std::string str = gob_cmd_update_armor_groups(
                                m_armor_groups);
@@ -1186,10 +1179,8 @@ int PlayerSAO::getWieldIndex() const
 
 void PlayerSAO::setWieldIndex(int i)
 {
-       if(i != m_wield_index)
-       {
+       if(i != m_wield_index) {
                m_wield_index = i;
-               m_wielded_item_not_sent = true;
        }
 }
 
index d6a494ae2a6e38402870504131ddf95e99eb13e9..6b7304944d30cd83ecd4b882a50e295ece7270f2 100644 (file)
@@ -318,7 +318,6 @@ public:
        // Some flags used by Server
        bool m_moved;
        bool m_inventory_not_sent;
-       bool m_wielded_item_not_sent;
 
        float m_physics_override_speed;
        float m_physics_override_jump;
index 84a8df4b886d7182f6b0891d21bd1b21145c0a61..cafeb951dcf298bb68edf961c002118830d96c0f 100644 (file)
@@ -1386,7 +1386,6 @@ void Server::setInventoryModified(const InventoryLocation &loc)
                if(!playersao)
                        return;
                playersao->m_inventory_not_sent = true;
-               playersao->m_wielded_item_not_sent = true;
        }
                break;
        case InventoryLocation::NODEMETA: