Skip to content

Commit

Permalink
libcommon|MapStateWriter: Write the new map state file header
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Mar 21, 2014
1 parent fe662a8 commit 355f9d7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doomsday/plugins/common/src/mapstatewriter.cpp
Expand Up @@ -76,10 +76,12 @@ DENG2_PIMPL(MapStateWriter)

void writeMapHeader()
{
#if __JHEXEN__
// Maps have their own version number.
Writer_WriteByte(writer, MY_SAVE_VERSION);
Writer_WriteInt32(writer, MY_SAVE_MAGIC);

// Map states have a version number.
Writer_WriteInt32(writer, MY_SAVE_VERSION);

#if __JHEXEN__
// Write the map timer
Writer_WriteInt32(writer, mapTime);
#endif
Expand Down

0 comments on commit 355f9d7

Please sign in to comment.