From: Mircea Kitsune Date: Fri, 28 Oct 2011 15:23:12 +0000 (+0300) Subject: Actually, do update the database when there are no objects. Otherwise deleting all... X-Git-Tag: xonotic-v0.6.0~35^2~18^2~74 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=410f8fe43b7ccc3187bb4c59615d04e8a7c6aaf1;p=xonotic%2Fxonotic-data.pk3dir.git Actually, do update the database when there are no objects. Otherwise deleting all objects would no longer update it --- diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index ddcdf0a75..e9fbfba24 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -200,9 +200,6 @@ void sandbox_ObjectPort_Load(entity e, string s, float database) void sandbox_DatabaseSave() { // saves all objects to the database file - if(!object_count) - return; // nothing to store - entity head; float get_file;