From 2b67ae817f499cefc1778834117ce3f7b56cbdd9 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 29 Mar 2016 00:08:47 +1000 Subject: [PATCH] Put pure entities in the corners of the map instead of out of bounds, fixes heavy FPS loss at world origin --- qcsrc/lib/oo.qh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/lib/oo.qh b/qcsrc/lib/oo.qh index e1e3193308..cf3a51f3ae 100644 --- a/qcsrc/lib/oo.qh +++ b/qcsrc/lib/oo.qh @@ -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; -- 2.39.2