diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-12 15:14:24 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:40 +0200 |
commit | 75a0ca6bd67aa9ca87668bc27d36399b5028c2b1 (patch) | |
tree | 0ba77ad2aec19a52161c6a361e7f04b1aadf1512 /src/content_sao.h | |
parent | 38944467d31bbfa8a98008962f147cbc3c73f507 (diff) | |
download | minetest-75a0ca6bd67aa9ca87668bc27d36399b5028c2b1.tar.gz minetest-75a0ca6bd67aa9ca87668bc27d36399b5028c2b1.tar.bz2 minetest-75a0ca6bd67aa9ca87668bc27d36399b5028c2b1.zip |
Scripting WIP
Diffstat (limited to 'src/content_sao.h')
-rw-r--r-- | src/content_sao.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index 103b4cc8e..1d7239232 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -52,6 +52,8 @@ public: InventoryItem* createInventoryItem(); InventoryItem* createPickedUpItem(){return createInventoryItem();} void rightClick(Player *player); + + float getMinimumSavedMovement(){ return 0.1*BS; } private: std::string m_inventorystring; v3f m_speed_f; @@ -218,6 +220,7 @@ public: void setPos(v3f pos); void moveTo(v3f pos, bool continuous); + float getMinimumSavedMovement(); private: void sendPosition(bool do_interpolate, bool is_movement_end); |