Updates l_move_time to use world.time

This commit is contained in:
mwerezak
2014-06-19 18:11:39 -04:00
parent 13c0d1163f
commit 9ef1216147
4 changed files with 5 additions and 5 deletions

View File

@@ -1220,7 +1220,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."

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))

View File

@@ -36,7 +36,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()