]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a comment line with information to the save file
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 28 Oct 2011 13:16:37 +0000 (16:16 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 28 Oct 2011 13:16:37 +0000 (16:16 +0300)
qcsrc/server/mutators/sandbox.qc

index 02686cb0d7ce6ba4629d8496bd9505ff64c7f502..f06cb3ea459b3d0a785c65b1d8219d5a374c4044 100644 (file)
@@ -209,6 +209,7 @@ void sandbox_Storage_DatabaseSave()
 
        fn = strcat("sandbox/storage_", GetMapname(), ".txt");
        fh = fopen(fn, FILE_WRITE);
 
        fn = strcat("sandbox/storage_", GetMapname(), ".txt");
        fh = fopen(fn, FILE_WRITE);
+       fputs(fh, strcat("// sandbox storage for map ", GetMapname(), ", containing a total of ", 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,
        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,