Skip to content

Commit

Permalink
Hexen: Fixed bug in loading savegames
Browse files Browse the repository at this point in the history
The savegame reader was reading one extra byte
at the end of the data of each moving floor. This was
causing the loader to believe that the saved data
is corrupt, when it in reality is not.

Fixes http://sourceforge.net/tracker/index.php?func=detail&aid=2862377&group_id=74815&atid=542099
  • Loading branch information
skyjake committed Dec 15, 2011
1 parent 6d46612 commit 003ca5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/plugins/common/src/p_saveg.c
Expand Up @@ -3070,7 +3070,6 @@ static int SV_ReadFloor(floor_t* floor)
floor->resetHeight = FIX2FLT(SV_ReadLong());
floor->resetDelay = SV_ReadShort();
floor->resetDelayCount = SV_ReadShort();
/*floor->textureChange =*/ SV_ReadByte();
#endif
}
else
Expand Down Expand Up @@ -4257,7 +4256,8 @@ static void P_UnArchiveThinkers(void)
found = true;

// Not for us? (it shouldn't be here anyway!).
if(!((thInfo->flags & TSF_SERVERONLY) && IS_CLIENT))
assert(!((thInfo->flags & TSF_SERVERONLY) && IS_CLIENT));

{
// Mobjs use a special engine-side allocator.
if(thInfo->thinkclass == TC_MOBJ)
Expand Down

0 comments on commit 003ca5a

Please sign in to comment.