Commit 4a804ced authored by spiglerg's avatar spiglerg
Browse files

fixed set_transitions bug

parent c69ceb5e
Pipeline #384 passed with stage
in 2 minutes and 37 seconds
......@@ -181,7 +181,9 @@ class GridTransitionMap(TransitionMap):
"""
if len(cell_id) == 3:
self.transitions.set_transitions(self.grid[cell_id[0]][cell_id[1]], cell_id[2], new_transitions)
self.grid[cell_id[0]][cell_id[1]] = self.transitions.set_transitions(self.grid[cell_id[0]][cell_id[1]],
cell_id[2],
new_transitions)
elif len(cell_id) == 2:
self.grid[cell_id[0]][cell_id[1]] = new_transitions
else:
......@@ -241,7 +243,10 @@ class GridTransitionMap(TransitionMap):
print('GridTransitionMap.set_transition() ERROR: \
wrong cell_id tuple.')
return
self.transitions.set_transition(self.grid[cell_id[0]][cell_id[1]], cell_id[2], transition_index, new_transition)
self.grid[cell_id[0]][cell_id[1]] = self.transitions.set_transition(self.grid[cell_id[0]][cell_id[1]],
cell_id[2],
transition_index,
new_transition)
def save_transition_map(self, filename):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment