Fixes bug with Centcom shuttle loan

This commit is contained in:
Jack Edge
2016-07-03 21:40:55 +01:00
parent 7546511a56
commit 05eed7fe4d
5 changed files with 24 additions and 34 deletions
+4 -3
View File
@@ -113,10 +113,11 @@
if("loan")
if(!SSshuttle.shuttle_loan)
return
if(!SSshuttle.supply.canMove())
say(safety_warning)
else if(SSshuttle.supply.mode != SHUTTLE_IDLE)
return
else if(SSshuttle.supply.mode == SHUTTLE_IDLE)
else if(SSshuttle.supply.getDockedId() != "supply_away")
return
else
SSshuttle.shuttle_loan.loan_shuttle()
say("The supply shuttle has been loaned to Centcom.")
. = TRUE