]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply the objects in the text file to the world. Partly works, but a few bugs still...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 28 Oct 2011 14:07:44 +0000 (17:07 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 28 Oct 2011 14:07:44 +0000 (17:07 +0300)
qcsrc/server/mutators/sandbox.qc

index 61b26877cd7615524a22226de944de1ceb7e1f28..4201bbb9f0915606ba736bcaf61ab6f1ea6f5392 100644 (file)
@@ -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'");