summaryrefslogtreecommitdiff
path: root/src/serverobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serverobject.h')
-rw-r--r--src/serverobject.h3
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.