From 10cd5b1ca71f9a991b8f309b9c9d746e9cee02de Mon Sep 17 00:00:00 2001 From: "giacomand@gmail.com" Date: Mon, 31 Dec 2012 06:06:50 +0000 Subject: [PATCH] -Freelook was updating too many chunks than it needed to. This will probably help get rid of less then half of the lag it causes. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5433 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/living/silicon/ai/freelook/cameranet.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm index eb38495e641..254e344ca9f 100644 --- a/code/modules/mob/living/silicon/ai/freelook/cameranet.dm +++ b/code/modules/mob/living/silicon/ai/freelook/cameranet.dm @@ -103,10 +103,10 @@ var/datum/cameranet/cameranet = new() var/turf/T = get_turf(c) if(T) - var/x1 = max(0, T.x - 16) & ~0xf - var/y1 = max(0, T.y - 16) & ~0xf - var/x2 = min(world.maxx, T.x + 16) & ~0xf - var/y2 = min(world.maxy, T.y + 16) & ~0xf + var/x1 = max(0, T.x - 8) & ~0xf + var/y1 = max(0, T.y - 8) & ~0xf + var/x2 = min(world.maxx, T.x + 8) & ~0xf + var/y2 = min(world.maxy, T.y + 8) & ~0xf for(var/x = x1; x <= x2; x += 16) for(var/y = y1; y <= y2; y += 16)