From 4e3b272af7398df4f9313dda763930658d278aa0 Mon Sep 17 00:00:00 2001 From: mjagdis Date: Fri, 1 Nov 2024 22:19:34 +0000 Subject: Save changed maps every 5 minutes (#5557) * Save maps every 5 minutes Signed-off-by: Mike Jagdis * Only save maps with changes Signed-off-by: Mike Jagdis * Maps created with non-default values are immediately dirty Signed-off-by: Mike Jagdis * Apply suggestions from code review * Fix spacing for clang-tidy --------- Signed-off-by: Mike Jagdis Co-authored-by: Alexander Harkness --- src/MapManager.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/MapManager.h') diff --git a/src/MapManager.h b/src/MapManager.h index 8959b1d8b..d20fe6683 100644 --- a/src/MapManager.h +++ b/src/MapManager.h @@ -64,6 +64,10 @@ private: cWorld * m_World; + /** How long till the map data will be saved + Default save interval is #defined in MAP_DATA_SAVE_INTERVAL */ + unsigned int m_TicksUntilNextSave; + }; // tolua_export -- cgit v1.2.3