From 75a0ca6bd67aa9ca87668bc27d36399b5028c2b1 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 12 Nov 2011 15:14:24 +0200 Subject: Scripting WIP --- src/serverobject.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/serverobject.h') 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. -- cgit v1.2.3