From 5eeb188533406da4b3594fad8c48369e18485371 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Fri, 28 Oct 2011 17:07:44 +0300 Subject: [PATCH] Apply the objects in the text file to the world. Partly works, but a few bugs still exist. --- qcsrc/server/mutators/sandbox.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 61b26877c..4201bbb9f 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -247,7 +247,10 @@ void sandbox_Storage_DatabaseLoad() continue; if(substring(rf, 0, 1) == "#") continue; - dprint(strcat(rf, " --------\n")); + + entity e; + e = sandbox_SpawnObject(TRUE); + sandbox_Storage_Load(e, rf, TRUE); } } } @@ -258,7 +261,6 @@ 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