Skip to content

Commit d7d4d01

Browse files
committed
It's me I'm the dumb
1 parent d5d3127 commit d7d4d01

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/Geoscape/DogfightState.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1658,7 +1658,7 @@ void DogfightState::setMinimized(const bool minimized)
16581658
*/
16591659
void DogfightState::btnMinimizedIconClick(Action *)
16601660
{
1661-
if (_ufo->getAltitudeInt() > _craft->getRules()->getMaxAltitude())
1661+
if (_craft->getRules()->isWaterOnly() && _ufo->getAltitudeInt() > _craft->getRules()->getMaxAltitude())
16621662
{
16631663
_state->popup(new DogfightErrorState(_craft, tr("STR_UNABLE_TO_ENGAGE_DEPTH")));
16641664
setWaitForAltitude(true);

‎src/Geoscape/GeoscapeState.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ void GeoscapeState::time5Seconds()
883883
if (!(*j)->isInDogfight() && !(*j)->getDistance(u))
884884
{
885885
_dogfightsToBeStarted.push_back(new DogfightState(this, (*j), u));
886-
if (u->getAltitudeInt() > (*j)->getRules()->getMaxAltitude())
886+
if ((*j)->getRules()->isWaterOnly() && u->getAltitudeInt() > (*j)->getRules()->getMaxAltitude())
887887
{
888888
popup(new DogfightErrorState((*j), tr("STR_UNABLE_TO_ENGAGE_DEPTH")));
889889
_dogfightsToBeStarted.back()->setMinimized(true);

0 commit comments

Comments
 (0)