Skip to content

Commit

Permalink
Merge pull request RPTools#530 from Merudo/ShowMovement
Browse files Browse the repository at this point in the history
Fix RPTools#470, Show Movement Distance setting now works
  • Loading branch information
Phergus authored Aug 3, 2019
2 parents b1f5dd4 + e078655 commit fd77fad
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2359,11 +2359,13 @@ public void renderPath(
zp.y += grid.getCellHeight() / 2 + cellOffset.height;
highlightCell(g, zp, grid.getCellHighlight(), 1.0f);
}
for (CellPoint p : cellPath) {
ZonePoint zp = grid.convert(p);
zp.x += grid.getCellWidth() / 2 + cellOffset.width;
zp.y += grid.getCellHeight() / 2 + cellOffset.height;
addDistanceText(g, zp, 1.0f, p.getDistanceTraveled(zone));
if (AppState.getShowMovementMeasurements()) {
for (CellPoint p : cellPath) {
ZonePoint zp = grid.convert(p);
zp.x += grid.getCellWidth() / 2 + cellOffset.width;
zp.y += grid.getCellHeight() / 2 + cellOffset.height;
addDistanceText(g, zp, 1.0f, p.getDistanceTraveled(zone));
}
}
int w = 0;
for (ZonePoint p : waypointList) {
Expand Down

0 comments on commit fd77fad

Please sign in to comment.