MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / zoomLastEvent

Method zoomLastEvent

game/ui/tileview/battleview.cpp:4711–4721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4709}
4710
4711void BattleView::zoomLastEvent()
4712{
4713 if (!state->messages.empty())
4714 {
4715 auto message = state->messages.back();
4716 if (message.location != EventMessage::NO_LOCATION)
4717 {
4718 zoomAt(message.location);
4719 }
4720 }
4721}
4722bool SquadInfo::operator==(const SquadInfo &other) const
4723{
4724 return this->selectedMode == other.selectedMode && this->units == other.units;

Callers 1

BattleViewMethod · 0.95

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected