Skip to content
Snippets Groups Projects
Commit 62cb0e23 authored by Reeves, David E's avatar Reeves, David E
Browse files

* ha! found an easy way to stop the setup/tear down loop at attack locations

parent afcca69d
No related branches found
No related tags found
No related merge requests found
......@@ -192,7 +192,6 @@ if len(borg.redConvoysWaiting[state.getCurrentUnit().getName()])==0:
# calculate how long on station they should be
borg.redNumSetups[state.getCurrentUnitName()]=borg.params_redNumSetups
printMessage("SETTING TOS "+str(state.getCurrentUnitName()), True)
SendEntityEvent(cmdName, "GoalTracker_ConvoySetup", [])
borg.delay=1.0
......@@ -284,7 +283,9 @@ if borg.redUnitStatus[state.getCurrentUnitName()]==setupNum:
else:
cmdName = state.getCurrentCommander().getAssignedName()
SendEntityEventDelay(cmdName, "GoalTracker_ConvoyPackUp", [], rn)
# only pack up if it's not an attack run or we still have destinations left to move to
if not borg.isAttackRun or len(borg.redConvoyDest[state.getCurrentUnit().getName()]) > 0:
SendEntityEventDelay(cmdName, "GoalTracker_ConvoyPackUp", [], rn)
for member in state.getCurrentUnit().getMembers():
if "RADAR" in member.getProfile().getName():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment