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

Method zoomDogfightIn

src/Geoscape/Globe.cpp:745–764  ·  view source on GitHub ↗

* Zooms the globe smoothly into dogfight level. * @return Is the globe already zoomed in? */

Source from the content-addressed store, hash-verified

743 * @return Is the globe already zoomed in?
744 */
745bool Globe::zoomDogfightIn()
746{
747 if (_zoom < DOGFIGHT_ZOOM)
748 {
749 double radiusNow = _radius;
750 if (radiusNow + _radiusStep >= _zoomRadius[DOGFIGHT_ZOOM])
751 {
752 setZoom(DOGFIGHT_ZOOM);
753 }
754 else
755 {
756 if (radiusNow + _radiusStep >= _zoomRadius[_zoom + 1])
757 _zoom++;
758 setZoom(_zoom);
759 _radius = radiusNow + _radiusStep;
760 }
761 return false;
762 }
763 return true;
764}
765
766/**
767 * Zooms the globe smoothly out of dogfight level.

Callers 1

zoomInEffectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected