From: Mario Date: Mon, 28 Mar 2016 14:08:47 +0000 (+1000) Subject: Put pure entities in the corners of the map instead of out of bounds, fixes heavy... X-Git-Tag: xonotic-v0.8.2~991 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=2b67ae817f499cefc1778834117ce3f7b56cbdd9 Put pure entities in the corners of the map instead of out of bounds, fixes heavy FPS loss at world origin --- 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;