From: Mario Date: Wed, 20 May 2020 02:09:39 +0000 (+1000) Subject: Remove the setorigin call from pure entities that links them into the world, fixes... X-Git-Tag: xonotic-v0.8.5~1023^2~1 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=5c90c2a040c36c4b924d7de8fc1197b5f1da7735 Remove the setorigin call from pure entities that links them into the world, fixes heavy lag at world origin with newer engines --- diff --git a/qcsrc/lib/oo.qh b/qcsrc/lib/oo.qh index 70e17e6cf0..a2cef664ba 100644 --- a/qcsrc/lib/oo.qh +++ b/qcsrc/lib/oo.qh @@ -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; }