Skip to content

Commit 038d3a3

Browse files
committedMar 3, 2015
Remove unused m_wielded_item_not_sent
1 parent 7e56637 commit 038d3a3

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed
 

‎src/content_sao.cpp

+2-11
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,6 @@ PlayerSAO::PlayerSAO(ServerEnvironment *env_, Player *player_, u16 peer_id_,
718718
// public
719719
m_moved(false),
720720
m_inventory_not_sent(false),
721-
m_wielded_item_not_sent(false),
722721
m_physics_override_speed(1),
723722
m_physics_override_jump(1),
724723
m_physics_override_gravity(1),
@@ -924,13 +923,7 @@ void PlayerSAO::step(float dtime, bool send_recommended)
924923
m_messages_out.push_back(aom);
925924
}
926925

927-
if(m_wielded_item_not_sent)
928-
{
929-
m_wielded_item_not_sent = false;
930-
// GenericCAO has no special way to show this
931-
}
932-
933-
if(m_armor_groups_sent == false){
926+
if(m_armor_groups_sent == false) {
934927
m_armor_groups_sent = true;
935928
std::string str = gob_cmd_update_armor_groups(
936929
m_armor_groups);
@@ -1186,10 +1179,8 @@ int PlayerSAO::getWieldIndex() const
11861179

11871180
void PlayerSAO::setWieldIndex(int i)
11881181
{
1189-
if(i != m_wield_index)
1190-
{
1182+
if(i != m_wield_index) {
11911183
m_wield_index = i;
1192-
m_wielded_item_not_sent = true;
11931184
}
11941185
}
11951186

‎src/content_sao.h

-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ class PlayerSAO : public ServerActiveObject
318318
// Some flags used by Server
319319
bool m_moved;
320320
bool m_inventory_not_sent;
321-
bool m_wielded_item_not_sent;
322321

323322
float m_physics_override_speed;
324323
float m_physics_override_jump;

‎src/server.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,6 @@ void Server::setInventoryModified(const InventoryLocation &loc)
13861386
if(!playersao)
13871387
return;
13881388
playersao->m_inventory_not_sent = true;
1389-
playersao->m_wielded_item_not_sent = true;
13901389
}
13911390
break;
13921391
case InventoryLocation::NODEMETA:

0 commit comments

Comments
 (0)
Please sign in to comment.