Skip to content

Commit

Permalink
Fixed: Mix up in XL_ValidateMap() which didn't select the episode cor…
Browse files Browse the repository at this point in the history
…rectly (should always be episode zero for DOOM2 and DOOM-shareware).
  • Loading branch information
danij committed Jun 20, 2008
1 parent d4a6efc commit 8b6ee0d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doomsday/plugins/common/src/p_xgline.c
Expand Up @@ -1694,16 +1694,15 @@ int C_DECL XLTrav_LineTeleport(linedef_t *newline, boolean dummy, void *context,
#undef FUDGEFACTOR
}


int XL_ValidateMap(int val, int type)
{
int episode, level = val;

#if __JDOOM__
if(gameMode == commercial)
episode = gameEpisode;
else
if(gameMode == commercial || gameMode == shareware)
episode = 0;
else
episode = gameEpisode;
#elif __JDOOM64__
episode = 0;
#elif __JHERETIC__
Expand Down

0 comments on commit 8b6ee0d

Please sign in to comment.