Skip to content

Commit

Permalink
Ability to use wave UFO instead of spawnUFO for retaliation assault runs
Browse files Browse the repository at this point in the history
  • Loading branch information
MeridianOXC committed Jan 1, 2024
1 parent 032ebd1 commit 8eb046d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Savegame/AlienMission.cpp
Expand Up @@ -526,7 +526,7 @@ Ufo *AlienMission::spawnUfo(SavedGame &game, const Mod &mod, const Globe &globe,
if (xcombase)
{
// Spawn a battleship straight for the XCOM base.
const RuleUfo &battleshipRule = *mod.getUfo(_rule.getSpawnUfo(), true);
const RuleUfo &battleshipRule = _rule.getSpawnUfo().empty() ? *ufoRule : *mod.getUfo(_rule.getSpawnUfo(), true);
const UfoTrajectory &assaultTrajectory = *mod.getUfoTrajectory(UfoTrajectory::RETALIATION_ASSAULT_RUN, true);
Ufo *ufo = new Ufo(&battleshipRule, game.getId("STR_UFO_UNIQUE"));
ufo->setMissionInfo(this, &assaultTrajectory);
Expand Down

0 comments on commit 8eb046d

Please sign in to comment.