summaryrefslogtreecommitdiff
path: root/src/strife/p_setup.c
diff options
context:
space:
mode:
authorJames Haley2010-10-03 21:05:42 +0000
committerJames Haley2010-10-03 21:05:42 +0000
commit04b25f44db67713759350981f533ebd2d5445edc (patch)
tree61e19b01b98455ae384a0ec0a20537b0156fd43c /src/strife/p_setup.c
parent7a3748fd12f76b2c84d087f4ccec7c281cb830cb (diff)
downloadchocolate-doom-04b25f44db67713759350981f533ebd2d5445edc.tar.gz
chocolate-doom-04b25f44db67713759350981f533ebd2d5445edc.tar.bz2
chocolate-doom-04b25f44db67713759350981f533ebd2d5445edc.zip
Eliminated the rest of the notion of an episode, added proper sky
setting, and other misc code in g_game. Also started *trying* to add new savegame code in g_game, but this is a just about a lost cause without any portable filepath handling support from the engine. Subversion-branch: /branches/strife-branch Subversion-revision: 2152
Diffstat (limited to 'src/strife/p_setup.c')
-rw-r--r--src/strife/p_setup.c28
1 files changed, 8 insertions, 20 deletions
diff --git a/src/strife/p_setup.c b/src/strife/p_setup.c
index 2145c5d5..b1a02b04 100644
--- a/src/strife/p_setup.c
+++ b/src/strife/p_setup.c
@@ -751,8 +751,7 @@ static void P_LoadReject(int lumpnum)
//
void
P_SetupLevel
-( int episode,
- int map,
+( int map,
int playermask,
skill_t skill)
{
@@ -789,28 +788,17 @@ P_SetupLevel
// UNUSED W_Profile ();
P_InitThinkers ();
-
- // find map name
- if ( gamemode == commercial)
- {
- if (map<10)
- DEH_snprintf(lumpname, 9, "map0%i", map);
- else
- DEH_snprintf(lumpname, 9, "map%i", map);
- }
+
+ // [STRIFE] Removed ExMy map support
+ if (map<10)
+ DEH_snprintf(lumpname, 9, "map0%i", map);
else
- {
- lumpname[0] = 'E';
- lumpname[1] = '0' + episode;
- lumpname[2] = 'M';
- lumpname[3] = '0' + map;
- lumpname[4] = 0;
- }
+ DEH_snprintf(lumpname, 9, "map%i", map);
lumpnum = W_GetNumForName (lumpname);
-
+
leveltime = 0;
-
+
// note: most of this ordering is important
P_LoadBlockMap (lumpnum+ML_BLOCKMAP);
P_LoadVertexes (lumpnum+ML_VERTEXES);