Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Remove other rotation constraint (fixes #463)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Nov 21, 2014
1 parent 545292b commit a9b20fc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/map/transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ void Transform::_moveBy(const double dx, const double dy, const timestamp durati

constrain(final.scale, final.y);

// Un-rotate when rotated and panning far enough to show off-world in corners.
double w = final.scale * util::tileSize / 2;
double m = std::sqrt(std::pow((current.width / 2), 2) + pow((current.height / 2), 2));
double x = std::abs(sqrt(std::pow(final.x, 2) + std::pow(final.y, 2)));
if (current.angle && w - x < m) _setAngle(0);

if (duration == 0) {
current.x = final.x;
current.y = final.y;
Expand Down

0 comments on commit a9b20fc

Please sign in to comment.