]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Put pure entities in the corners of the map instead of out of bounds, fixes heavy...
authorMario <mario@smbclan.net>
Mon, 28 Mar 2016 14:08:47 +0000 (00:08 +1000)
committerMario <mario@smbclan.net>
Mon, 28 Mar 2016 14:08:47 +0000 (00:08 +1000)
qcsrc/lib/oo.qh

index e1e3193308c4a0fe021301445e827dedd97a4ec8..cf3a51f3aeaa10dc503b14a63dcad4c4220ec0a2 100644 (file)
@@ -50,10 +50,10 @@ entity __spawn(string _classname, string _sourceLoc, bool pure)
        if (pure) {
                make_pure(this);
                #ifdef CSQC
-               setorigin(this, '0 0 10000');
+               setorigin(this, world.mins + '0 0 20');
                #endif
                #ifdef SVQC
-        setorigin(this, '0 0 -10000');
+        setorigin(this, world.maxs - '0 0 20');
         #endif
        }
        return this;