Properly counts stacked cash

This commit is contained in:
KorPhaeron
2016-11-13 22:47:16 -06:00
parent 3221c630c5
commit 6d8e8b2532
+5 -5
View File
@@ -132,15 +132,15 @@
total_cash += C.value
counted_money += C
for(var/obj/item/stack/spacecash/S in mover)
total_cash += S.value
total_cash += S.value * S.amount
counted_money += S
if(total_cash >= threshhold)
for(var/obj/I in counted_money)
qdel()
mover << "Thank you for your payment! Please enjoy your flight."
approved_passengers += mover
return 1
qdel(I)
mover << "Thank you for your payment! Please enjoy your flight."
approved_passengers += mover
return 1
else
mover << "You don't have enough money to enter the main shuttle. You'll have to fly coach."
return 0