From 708337dfc2b3871dc6de983e781e4a4a60a1881d Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sun, 16 Nov 2014 15:31:57 -0500 Subject: Clean up database API and save the local map on an interval --- src/client.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index c0146911d..a0add689a 100644 --- a/src/client.h +++ b/src/client.h @@ -48,7 +48,6 @@ struct MapDrawControl; class MtEventManager; struct PointedThing; class Database; -class Server; struct QueuedMeshUpdate { @@ -620,8 +619,9 @@ private: LocalClientState m_state; // Used for saving server map to disk client-side - Database *localdb; - Server *localserver; + Database *m_localdb; + IntervalLimiter m_localdb_save_interval; + u16 m_cache_save_interval; // TODO: Add callback to update these when g_settings changes bool m_cache_smooth_lighting; -- cgit v1.2.3