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/serverobject.h | |
parent | 38944467d31bbfa8a98008962f147cbc3c73f507 (diff) | |
download | minetest-75a0ca6bd67aa9ca87668bc27d36399b5028c2b1.tar.gz minetest-75a0ca6bd67aa9ca87668bc27d36399b5028c2b1.tar.bz2 minetest-75a0ca6bd67aa9ca87668bc27d36399b5028c2b1.zip |
Scripting WIP
Diffstat (limited to 'src/serverobject.h')
-rw-r--r-- | src/serverobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serverobject.h b/src/serverobject.h index cd98ba0aa..6d616c75e 100644 --- a/src/serverobject.h +++ b/src/serverobject.h @@ -76,6 +76,9 @@ public: // continuous: if true, object does not stop immediately at pos virtual void moveTo(v3f pos, bool continuous) { setBasePosition(pos); } + // If object has moved less than this and data has not changed, + // saving to disk may be omitted + virtual float getMinimumSavedMovement(){ return 2.0*BS; } /* Step object in time. |