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 e1e3193..cf3a51f 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;