From: Mircea Kitsune Date: Fri, 28 Oct 2011 14:07:44 +0000 (+0300) Subject: Apply the objects in the text file to the world. Partly works, but a few bugs still... X-Git-Tag: xonotic-v0.6.0~35^2~18^2~79 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5eeb188533406da4b3594fad8c48369e18485371;p=xonotic%2Fxonotic-data.pk3dir.git Apply the objects in the text file to the world. Partly works, but a few bugs still exist. --- 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'");