diff options
| author | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-04 11:29:34 +0100 |
|---|---|---|
| committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-04 11:29:39 +0100 |
| commit | 1b2f64473ed4f222d3b7f02df853730d4382105e (patch) | |
| tree | 820e24b348438ce79dc5e183774e4bd091d2d3a9 /src/content_sao.h | |
| parent | 038d3a31dfa6c382a5a5a57f2ce367d1cd67fb9f (diff) | |
| download | minetest-1b2f64473ed4f222d3b7f02df853730d4382105e.tar.xz | |
Send Inventory packet on event, don't check it at each AsyncRunStep.
* Call UpdateCrafting into SendInventory because this functions is only called before SendInventory
* Use Player* instead of peer_id for UpdateCrafting because SendInventory already has the Player* pointer, then don't loop for searching Player* per peer_id
* m_env_mutex don't need to be used with this modification because it's already locked before the calls
Diffstat (limited to 'src/content_sao.h')
| -rw-r--r-- | src/content_sao.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index 6b7304944..a93029154 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -205,7 +205,6 @@ public: Inventory* getInventory(); const Inventory* getInventory() const; InventoryLocation getInventoryLocation() const; - void setInventoryModified(); std::string getWieldList() const; int getWieldIndex() const; void setWieldIndex(int i); @@ -317,7 +316,6 @@ private: public: // Some flags used by Server bool m_moved; - bool m_inventory_not_sent; float m_physics_override_speed; float m_physics_override_jump; |
