Skip to content
Snippets Groups Projects
Commit e5ab32f9 authored by Nicholas Pacini's avatar Nicholas Pacini
Browse files

fix

parent be8cd17d
No related branches found
No related tags found
No related merge requests found
......@@ -724,7 +724,12 @@ public List<NamedElement> getOrderedAttacksAndFragments(Interaction scenario) {
//this assumes that index starts at 0
public Integer getAltOffset(Integer index, Integer size){
return (index - size/2)*OFFSET;
Integer result = (index +1 - size/2)*OFFSET; //size is even
if(size % 2 != 0){ //size is odd
result = (index - size/2)*OFFSET;
}
// System.out.println(result);
return result;
}
public Message getOperandAttack(InteractionOperand operand){
......
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