Skip to content

Commit

Permalink
Merge pull request #13 from dnicolson/fix-expansion-pack
Browse files Browse the repository at this point in the history
Fix expansion pack start map
  • Loading branch information
tomkidd authored Oct 13, 2020
2 parents c606e25 + e6033c1 commit d347497
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions DOOM3-iOS/GameViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,23 @@ class GameViewController: UIViewController {
argv.append("g_skill")
argv.append("\(self.difficulty)")
}

if self.newgame {
// argv.append("+startGame")
// mars_city1
argv.append("+map")
argv.append("game/mars_city1")
}


// Mission Pack
#if _D3XP
argv.append("+set")
argv.append("fs_game")
argv.append("d3xp")
argv.append("+set")
argv.append("fs_game")
argv.append("d3xp")

let startMap = "erebus1"
#else
let startMap = "mars_city1"
#endif


if self.newgame {
argv.append("+map")
argv.append("game/\(startMap)")
}

if !self.selectedSavedGame.isEmpty {
argv.append("+loadGame")
argv.append(self.selectedSavedGame)
Expand Down

0 comments on commit d347497

Please sign in to comment.