From 5c90c2a040c36c4b924d7de8fc1197b5f1da7735 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 20 May 2020 12:09:39 +1000 Subject: [PATCH] Remove the setorigin call from pure entities that links them into the world, fixes heavy lag at world origin with newer engines --- qcsrc/lib/oo.qh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/qcsrc/lib/oo.qh b/qcsrc/lib/oo.qh index 70e17e6cf..a2cef664b 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; } -- 2.39.2