diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-09-02 22:51:38 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-09-02 22:51:38 +0300 |
commit | e1a495ee306290b3bec2de9aa298aac1528e9243 (patch) | |
tree | 352db0aedb58fa4a26790227c388d0773f05279f /src/guiFormSpecMenu.h | |
parent | 6495007924d8907ddfff14be09d38a4b1745b95a (diff) | |
download | minetest-e1a495ee306290b3bec2de9aa298aac1528e9243.tar.gz minetest-e1a495ee306290b3bec2de9aa298aac1528e9243.tar.bz2 minetest-e1a495ee306290b3bec2de9aa298aac1528e9243.zip |
Make inventory GUI do sane things when server-side inventory acts unusually
Diffstat (limited to 'src/guiFormSpecMenu.h')
-rw-r--r-- | src/guiFormSpecMenu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/guiFormSpecMenu.h b/src/guiFormSpecMenu.h index f0a5988e9..5c01bdcd2 100644 --- a/src/guiFormSpecMenu.h +++ b/src/guiFormSpecMenu.h @@ -212,6 +212,12 @@ protected: ItemSpec *m_selected_item; u32 m_selected_amount; bool m_selected_dragging; + + // WARNING: BLACK MAGIC + // Used to guess and keep up with some special things the server can do. + // If name is "", no guess exists. + ItemStack m_selected_content_guess; + InventoryLocation m_selected_content_guess_inventory; v2s32 m_pointer; gui::IGUIStaticText *m_tooltip_element; |