Let the Spring.GiveOrder
callout family accept nil
params/opts
#1821
Labels
Spring.GiveOrder
callout family accept nil
params/opts
#1821
Spring.GiveOrder(cmdID, {}, 0)
is required to correctly give a parameterless option.spGiveOrder(cmdID, 0, 0)
, but this is only correct if a command is strictly parameterless (will have a behaviour difference if it can accept either 0 or 1 arg).nil
and default to 0, and for params to also accept nil and default to no params. This would let devs give commands likespGiveOrder(CMD.STOP)
.The text was updated successfully, but these errors were encountered: