From e6033c1449d2f66f01384b23a9a65079690993c2 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Sat, 10 Oct 2020 05:23:45 +0200 Subject: [PATCH] Fix expansion pack start map --- DOOM3-iOS/GameViewController.swift | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/DOOM3-iOS/GameViewController.swift b/DOOM3-iOS/GameViewController.swift index 990a1ee..6ddf212 100644 --- a/DOOM3-iOS/GameViewController.swift +++ b/DOOM3-iOS/GameViewController.swift @@ -45,21 +45,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)