bool invert_mouse = g_settings->getBool("invert_mouse");
bool respawn_menu_active = false;
+ bool update_wielded_item_trigger = false;
bool show_profiler = false;
bool force_fog_off = false;
else if(event.type == CE_TEXTURES_UPDATED)
{
update_skybox(driver, tsrc, smgr, skybox, brightness);
+
+ update_wielded_item_trigger = true;
}
}
}
{
//infostream<<"Updating local inventory"<<std::endl;
client.getLocalInventory(local_inventory);
-
+
+ update_wielded_item_trigger = true;
+ }
+ if(update_wielded_item_trigger)
+ {
+ update_wielded_item_trigger = false;
// Update wielded tool
InventoryList *mlist = local_inventory.getList("main");
InventoryItem *item = NULL;
m_con.Send(peer_id, 0, data, true);
}
- // Now the client should know about everything
- getClient(peer_id)->definitions_sent = true;
-
// Send information about server to player in chat
SendChatMessage(peer_id, getStatusString());
}
SendTexturesRequested(peer_id, tosend);
+
+ // Now the client should know about everything
+ // (definitions and textures)
+ getClient(peer_id)->definitions_sent = true;
}
else if(command == TOSERVER_INTERACT)
{