-Small improvements to atmos. Most notable is combining two loops into one during initialization and commenting out a loop with no nested code.

-Set chunk/update to be a background proc.
-Made it so the Eye's loc won't be set to null when moving out of the map.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4735 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-09-20 14:24:50 +00:00
parent ea1c1a5a0d
commit 7fc77b0bc5
5 changed files with 19 additions and 17 deletions

View File

@@ -42,7 +42,6 @@
/datum/camerachunk/proc/visibilityChanged(turf/loc)
if(!(loc in visibleTurfs))
return
hasChanged()
// Updates the chunk, makes sure that it doesn't update too much. If the chunk isn't being watched it will
@@ -62,6 +61,8 @@
/datum/camerachunk/proc/update()
set background = 1
var/list/newVisibleTurfs = list()
for(var/obj/machinery/camera/c in cameras)

View File

@@ -103,7 +103,9 @@
user.sprint = initial
for(var/i = 0; i < max(user.sprint, initial); i += 20)
user.eyeobj.setLoc(get_turf(get_step(user.eyeobj, direct)))
var/turf/step = get_turf(get_step(user.eyeobj, direct))
if(step)
user.eyeobj.setLoc(step)
user.cooldown = world.timeofday + 5
if(user.acceleration)