Skip to content

Commit

Permalink
Fixed save issue in jHeretic, due to a typo in a precompiler define f…
Browse files Browse the repository at this point in the history
…or a __JHERETIC__ logic branch.
  • Loading branch information
danij committed Feb 9, 2009
1 parent 482c167 commit 3b58f8e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doomsday/plugins/common/src/p_saveg.c
Expand Up @@ -1390,7 +1390,7 @@ static void SV_ReadPlayer(player_t *p)

#if __JHEXEN__
# define MOBJ_SAVEVERSION 6
#elif __JHEREITC__
#elif __JHERETIC__
# define MOBJ_SAVEVERSION 8
#else
# define MOBJ_SAVEVERSION 7
Expand Down Expand Up @@ -4497,7 +4497,7 @@ static void P_ArchiveMap(boolean savePlayers)
static void P_UnArchiveMap(void)
{
#if __JHEXEN__
int segType = SV_ReadLong();
int segType = SV_ReadLong();

// Determine the map version.
if(segType == ASEG_MAP_HEADER2)
Expand All @@ -4513,7 +4513,11 @@ static void P_UnArchiveMap(void)
Con_Error("Corrupt save game: Segment [%d] failed alignment check",
ASEG_MAP_HEADER);
}
#else
AssertSegment(ASEG_MAP_HEADER2);
#endif

#if __JHEXEN__
// Read the map timer
mapTime = SV_ReadLong();
#endif
Expand Down

0 comments on commit 3b58f8e

Please sign in to comment.