* Zooms the globe smoothly out of dogfight level. * @return Is the globe already zoomed out? */
| 768 | * @return Is the globe already zoomed out? |
| 769 | */ |
| 770 | bool Globe::zoomDogfightOut() |
| 771 | { |
| 772 | if (_zoom > _zoomOld) |
| 773 | { |
| 774 | double radiusNow = _radius; |
| 775 | if (radiusNow - _radiusStep <= _zoomRadius[_zoomOld]) |
| 776 | { |
| 777 | setZoom(_zoomOld); |
| 778 | } |
| 779 | else |
| 780 | { |
| 781 | if (radiusNow - _radiusStep <= _zoomRadius[_zoom - 1]) |
| 782 | _zoom--; |
| 783 | setZoom(_zoom); |
| 784 | _radius = radiusNow - _radiusStep; |
| 785 | } |
| 786 | return false; |
| 787 | } |
| 788 | return true; |
| 789 | } |
| 790 | |
| 791 | /** |
| 792 | * Rotates the globe to center on a certain |