mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
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:
@@ -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>")
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user