]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Print more information to the first line of the storage time, including the date...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 28 Oct 2011 16:04:32 +0000 (19:04 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 28 Oct 2011 16:04:32 +0000 (19:04 +0300)
qcsrc/server/mutators/sandbox.qc

index 8a7521ba32e7da0c168254008fd1e7b0ea21222d..9c75ef2d61af1640d36d7d1ad0115b4ac34922b0 100644 (file)
@@ -206,7 +206,9 @@ void sandbox_Database_Save()
 
        file_name = strcat("sandbox/storage_", autocvar_g_sandbox_storage_name, "_", GetMapname(), ".txt");
        file_get = fopen(file_name, FILE_WRITE);
-       fputs(file_get, strcat("// sandbox storage for map ", GetMapname(), ", containing a total of ", ftos(object_count), " objects\n"));
+       fputs(file_get, strcat("// sandbox storage \"", autocvar_g_sandbox_storage_name, "\" for map \"", GetMapname(), "\" last updated ", strftime(TRUE, "%d-%m-%Y %H:%M:%S")));
+       fputs(file_get, strcat(" containing ", ftos(object_count), " objects\n"));
+
        for(head = world; (head = find(head, classname, "object")); )
        {
                // Unfortunately, attached objects cannot be persisted yet. That's because the parent is specified as an entity,