Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Robosturm committed Jan 2, 2025
1 parent 5193a8a commit ee80d6d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ai/veryeasyai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ bool VeryEasyAI::fireWithIndirectUnits(spQmlVectorUnit & pUnits)
pInterpreter->threadProcessEvents();
// can we use the unit?
if (!pUnit->getHasMoved() && pUnit->getBaseMaxRange() > 1 &&
(pUnit->getAmmo1() > 0 || pUnit->getAmmo2() > 0) &&
(pUnit->hasAmmo1() || pUnit->hasAmmo2()) &&
pUnit->getAiMode() == GameEnums::GameAi_Normal)
{
if (attack(pUnit.get()))
Expand All @@ -275,7 +275,7 @@ bool VeryEasyAI::fireWithDirectUnits(spQmlVectorUnit & pUnits)
pInterpreter->threadProcessEvents();
// can we use the unit?
if (!pUnit->getHasMoved() && pUnit->getBaseMaxRange() == 1 &&
(pUnit->getAmmo1() > 0 || pUnit->getAmmo2() > 0) &&
(pUnit->hasAmmo1() || pUnit->hasAmmo2()) &&
pUnit->getAiMode() == GameEnums::GameAi_Normal)
{
if (attack(pUnit.get()))
Expand Down
1 change: 0 additions & 1 deletion coreengine/mainapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ void Mainapp::nextStartUpStep(StartupPhase step)
}
case UpdateManager:
{
changeScreenMode(getScreenMode());
#ifdef UPDATESUPPORT
GameUpdater::cleanUpOldArtifacts();
QString updateStep = Settings::getInstance()->getUpdateStep();
Expand Down
7 changes: 5 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ int main(qint32 argc, char* argv[])
// force a resolution reset
window.changeScreenMode(Settings::ScreenModes::FullScreen);
}
// show as normal borderless
window.changeScreenMode(window.getScreenMode());
else
{
// show as normal borderless
window.changeScreenMode(window.getScreenMode());
}
window.setBrightness(Settings::getInstance()->getBrightness());
window.setGamma(Settings::getInstance()->getGamma());
if (window.getScreenMode() != Settings::ScreenModes::Window)
Expand Down

0 comments on commit ee80d6d

Please sign in to comment.