summaryrefslogtreecommitdiffhomepage
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/simu/robots/robospierre/model/clamp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/simu/robots/robospierre/model/clamp.py b/host/simu/robots/robospierre/model/clamp.py
index c199259e..d32edf25 100644
--- a/host/simu/robots/robospierre/model/clamp.py
+++ b/host/simu/robots/robospierre/model/clamp.py
@@ -193,6 +193,9 @@ class Clamp (Observable):
and slots[2].pawn and slots[2].door_motor.angle:
slots[0].pawn.tower.append (slots[2].pawn)
slots[2].pawn = None
+ if slots[0].pawn is None and slots[1].pawn is None \
+ and slots[2].pawn and slots[2].door_motor.angle:
+ slots[0].pawn, slots[2].pawn = slots[2].pawn, None
def update_contacts (self):
"""Update pawn contacts."""