From: Mircea Kitsune Date: Fri, 28 Oct 2011 16:04:32 +0000 (+0300) Subject: Print more information to the first line of the storage time, including the date... X-Git-Tag: xonotic-v0.6.0~35^2~18^2~71 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a37999789f478ab3431ae3817c3fe8973d4d9a18;p=xonotic%2Fxonotic-data.pk3dir.git Print more information to the first line of the storage time, including the date and time when the file was last updated --- diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 8a7521ba3..9c75ef2d6 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -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,