Update supply.dm

This commit is contained in:
Poojawa
2017-09-04 21:26:19 -05:00
committed by GitHub
parent 32742f0b53
commit 3a76fdc2e9
+2 -1
View File
@@ -67,7 +67,8 @@ GLOBAL_LIST_INIT(blacklisted_cargo_types, typecacheof(list(
/obj/docking_port/mobile/supply/dock()
if(getDockedId() == "supply_away") // Buy when we leave home.
buy()
if(..()) // Fly/enter transit.
. = ..() // Fly/enter transit.
if(. != DOCKING_SUCCESS)
return
if(getDockedId() == "supply_away") // Sell when we get home
sell()