|
@@ -71,14 +71,14 @@ public class Model extends Observable
|
|
|
|
|
|
for (int i = 0; i < thingies.size() && tempLen <= x; i++)
|
|
|
{
|
|
|
- tempLen += thingies.get(i).getVisisbleLen();
|
|
|
+ tempLen += thingies.get(i).getVisibleLen();
|
|
|
index = i;
|
|
|
}
|
|
|
|
|
|
Thingy tempThingy = thingies.get(index);
|
|
|
// off by one adjustments if we're at the end of a thingy
|
|
|
- if (tempThingy.getVisisbleLen() == 0 && tempLen > x) tempThingy = thingies.get(index - 1);
|
|
|
- if (tempThingy.getVisisbleLen() == tempThingy.getPoints().size() && tempLen < x) tempThingy = thingies.get(index + 1);
|
|
|
+ if (tempThingy.getVisibleLen() == 0 && tempLen > x) tempThingy = thingies.get(index - 1);
|
|
|
+ if (tempThingy.getVisibleLen() == tempThingy.getPoints().size() && tempLen < x) tempThingy = thingies.get(index + 1);
|
|
|
|
|
|
// now modify tempThingy
|
|
|
// if we want to go back in time
|
|
@@ -192,7 +192,7 @@ class Thingy
|
|
|
return thiccness;
|
|
|
}
|
|
|
|
|
|
- public int getVisisbleLen()
|
|
|
+ public int getVisibleLen()
|
|
|
{
|
|
|
return visibleLen;
|
|
|
}
|