Put pure entities in the very center of the map (corner has issues on some of the...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / oo.qh
index cf3a51f..fd6ca20 100644 (file)
@@ -50,10 +50,10 @@ entity __spawn(string _classname, string _sourceLoc, bool pure)
        if (pure) {
                make_pure(this);
                #ifdef CSQC
-               setorigin(this, world.mins + '0 0 20');
+               setorigin(this, (world.mins + world.maxs) * 0.5);
                #endif
                #ifdef SVQC
-        setorigin(this, world.maxs - '0 0 20');
+        setorigin(this, (world.mins + world.maxs) * 0.5);
         #endif
        }
        return this;