MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / zoomDogfightOut

Method zoomDogfightOut

src/Geoscape/Globe.cpp:770–789  ·  view source on GitHub ↗

* Zooms the globe smoothly out of dogfight level. * @return Is the globe already zoomed out? */

Source from the content-addressed store, hash-verified

768 * @return Is the globe already zoomed out?
769 */
770bool 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

Callers 1

zoomOutEffectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected