From c97fc22813d9efc20d6677ade482b7f23faafca1 Mon Sep 17 00:00:00 2001 From: Novacat <35587478+Novacat@users.noreply.github.com> Date: Mon, 23 Nov 2020 10:21:54 -0500 Subject: [PATCH] Merge pull request #9346 from ShadowLarkens/patch-1 Fix #9345 --- code/game/machinery/vending.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index c918fca5d2..4f3d532c27 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -458,13 +458,9 @@ GLOBAL_LIST_EMPTY(vending_products) if(!can_buy(R, usr)) return - - vend_ready = FALSE // From this point onwards, vendor is locked to performing this transaction only, until it is resolved. - if(R.price <= 0) vend(R, usr) add_fingerprint(usr) - vend_ready = TRUE return TRUE if(issilicon(usr)) //If the item is not free, provide feedback if a synth is trying to buy something. @@ -473,6 +469,9 @@ GLOBAL_LIST_EMPTY(vending_products) if(!ishuman(usr)) return + + vend_ready = FALSE // From this point onwards, vendor is locked to performing this transaction only, until it is resolved. + var/mob/living/carbon/human/H = usr var/obj/item/weapon/card/id/C = H.GetIdCard()