]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Actually, do update the database when there are no objects. Otherwise deleting all...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 28 Oct 2011 15:23:12 +0000 (18:23 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 28 Oct 2011 15:23:12 +0000 (18:23 +0300)
qcsrc/server/mutators/sandbox.qc

index ddcdf0a751abd5aab0da939050f841d7b74a5453..e9fbfba24ba91a8add164b21567cd8a72ac08975 100644 (file)
@@ -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;