Updates l_move_time to use world.time

This commit is contained in:
mwerezak
2014-06-20 12:12:31 -04:00
committed by ZomgPonies
parent aa7a7b3cee
commit 6d44eea078
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -15,8 +15,8 @@
/atom/movable/Move()
var/atom/A = src.loc
. = ..()
src.move_speed = world.timeofday - src.l_move_time
src.l_move_time = world.timeofday
src.move_speed = world.time - src.l_move_time
src.l_move_time = world.time
src.m_flag = 1
if ((A != src.loc && A && A.z == src.z))
src.last_move = get_dir(A, src.loc)
@@ -1371,7 +1371,7 @@
return
usr << "Don't move until counting is finished."
var/time = world.timeofday
var/time = world.time
sleep(60)
if(usr.l_move_time >= time) //checks if our mob has moved during the sleep()
usr << "You moved while counting. Try again."
+1 -1
View File
@@ -74,7 +74,7 @@
//Moving around with fractured ribs won't do you any good
if (broken && E.internal_organs && prob(15))
if (!lying && world.timeofday - l_move_time < 15)
if (!lying && world.time - l_move_time < 15)
var/datum/organ/internal/I = pick(E.internal_organs)
custom_pain("You feel broken bones moving in your [E.display_name]!", 1)
I.take_damage(rand(3,5))
+1 -1
View File
@@ -37,7 +37,7 @@
//spawn the cell you want in each vehicle
/obj/vehicle/Move()
if(world.timeofday > l_move_time + move_delay)
if(world.time > l_move_time + move_delay)
if(on && powered && cell.charge < power_use)
turn_off()