From 9254ee0347c578ae84744430f2d3d8f22928bb12 Mon Sep 17 00:00:00 2001 From: Louis Moureaux Date: Thu, 13 Jun 2024 02:45:27 +0200 Subject: [PATCH] Flush attributes as soon as they are set This is inefficient in terms of network traffic, but it means governors are saved immediately, which is usually what the user wants. --- client/attribute.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/attribute.cpp b/client/attribute.cpp index cc2df7be32..6b8a669e8a 100644 --- a/client/attribute.cpp +++ b/client/attribute.cpp @@ -352,6 +352,9 @@ void attribute_set(int key, int id, int x, int y, size_t data_length, } else { attribute_hash->remove(akey); } + + // Sync with the server + attribute_flush(); } /**