]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove the setorigin call from pure entities that links them into the world, fixes...
authorMario <mario.mario@y7mail.com>
Wed, 20 May 2020 02:09:39 +0000 (12:09 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 20 May 2020 02:09:39 +0000 (12:09 +1000)
qcsrc/lib/oo.qh

index 70e17e6cf0b2ddc9146c3bbf52fec8d0d88f078b..a2cef664bad3b72f9936ab371b12087c1e362027 100644 (file)
@@ -39,12 +39,6 @@ entity __spawn(string _classname, string _sourceLoc, bool pure)
        this.sourceLoc = _sourceLoc;
        if (pure) {
                make_pure(this);
-               #ifdef CSQC
-               setorigin(this, (world.mins + world.maxs) * 0.5);
-               #endif
-               #ifdef SVQC
-        setorigin(this, (world.mins + world.maxs) * 0.5);
-        #endif
        }
        return this;
 }