Cleans up and uses less area checks, relying more on lastarea.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2949 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
VivianFoxfoot@gmail.com
2012-01-13 06:01:32 +00:00
parent ecc367e059
commit 8af7db096d
5 changed files with 14 additions and 15 deletions
+1 -2
View File
@@ -147,8 +147,7 @@
if(W.loc == my_target) break
sleep(2)
var/area/a = get_area(usr.loc)
if((istype(usr.loc, /turf/space)) || (a.has_gravity == 0))
if((istype(usr.loc, /turf/space)) || (usr.lastarea.has_gravity == 0))
user.inertia_dir = get_dir(target, user)
step(user, user.inertia_dir)