* Rotates the globe by a set amount. Necessary * since the globe keeps rotating while a button * is pressed down. */
| 1052 | * is pressed down. |
| 1053 | */ |
| 1054 | void Globe::rotate() |
| 1055 | { |
| 1056 | _cenLon += _rotLon * ((110 - Options::geoScrollSpeed) / 100.0) / (_zoom+1); |
| 1057 | _cenLat += _rotLat * ((110 - Options::geoScrollSpeed) / 100.0) / (_zoom+1); |
| 1058 | _game->getSavedGame()->setGlobeLongitude(_cenLon); |
| 1059 | _game->getSavedGame()->setGlobeLatitude(_cenLat); |
| 1060 | invalidate(); |
| 1061 | } |
| 1062 | |
| 1063 | /** |
| 1064 | * Draws the whole globe, part by part. |
nothing calls this directly
no test coverage detected