From 99acc0c580964b687517098998cc2e05a0d5ead0 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Fri, 28 Oct 2011 16:57:11 +0300 Subject: [PATCH] Remove object* at the beginning of each line. Hard to do the tokenizing / substringing for that, and it doesn't make any sense either --- qcsrc/server/mutators/sandbox.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 4a1a52241..61b26877c 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -220,7 +220,7 @@ void sandbox_Storage_DatabaseSave() continue; // use a line for each object, listing all properties - fputs(fh, strcat("object", ftos(i), " ", sandbox_Storage_Save(head, TRUE), "\n")); + fputs(fh, strcat(sandbox_Storage_Save(head, TRUE), "\n")); i++; } fclose(fh); @@ -230,7 +230,7 @@ void sandbox_Storage_DatabaseLoad() { // loads all objects from the database file string fn, rf; - float fh; + float fh, n; fn = strcat("sandbox/storage_", GetMapname(), ".txt"); fh = fopen(fn, FILE_READ); @@ -258,6 +258,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) return FALSE; if(cmd_name == "g_sandbox") { +sandbox_Storage_DatabaseLoad(); if(cmd_argc < 2) { print_to(self, "Sandbox mode is active. For usage information, type 'sandbox help'"); -- 2.39.2