Replaced loc setting with forceMove. (#11490)

* Replaced loc setting with forceMove.

* Update forceMove to permit moving to null loc.

Also fixed atom locking with offsets not following properly.
This commit is contained in:
ComicIronic
2016-08-29 12:40:45 +01:00
committed by clusterfack
parent b0e22029ab
commit b35eaa65d8
348 changed files with 1019 additions and 1016 deletions

View File

@@ -121,7 +121,7 @@
for(var/obj/item/toy/singlecard/card in C.currenthand)
if(card.flipped == 0)
card.Flip()
card.loc = src
card.forceMove(src)
cards += card
user.visible_message("<span class = 'notice'>[user] puts their hand of cards into the deck.</span>",
"<span class = 'notice'>You put the hand into the deck.</span>")

View File

@@ -176,7 +176,7 @@
ASSERT(H)
usr.visible_message("\The [usr] plays \the [card.name].")
H.loc = get_step(usr,usr.dir)
H.forceMove(get_step(usr,usr.dir))
src.update_icon()