]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow spawning portals in tighter spaces
authorMattia Basaglia <mattia.basaglia@gmail.com>
Fri, 24 Mar 2017 15:41:14 +0000 (15:41 +0000)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Fri, 24 Mar 2017 15:41:14 +0000 (15:41 +0000)
qcsrc/server/portals.qc

index 99125a1a30c502d58e736cefbdfb59033d02a05a..77efdc4e590f138bcd8826e53788f63fcf1b3600 100644 (file)
@@ -624,7 +624,8 @@ entity Portal_Spawn(entity own, vector org, vector ang)
        entity portal;
 
        fixedmakevectors(ang);
-       if(!CheckWireframeBox(own, org - 48 * v_right - 48 * v_up + 16 * v_forward, 96 * v_right, 96 * v_up, 96 * v_forward))
+
+       if(!CheckWireframeBox(own, org - 48 * v_right - 48 * v_up + 16 * v_forward, 96 * v_right, 96 * v_up, 32 * v_forward))
                return NULL;
 
        portal = new(portal);