Skip to content

Commit

Permalink
Fixed|Savegame Tool: Translation of "fast" game rule for ver 13 save …
Browse files Browse the repository at this point in the history
…format
  • Loading branch information
danij-deng committed Mar 14, 2014
1 parent e2c63cb commit 0ca3c70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doomsday/tools/savegametool/src/main.cpp
Expand Up @@ -381,11 +381,15 @@ static void xlatLegacyMetadata(SessionMetadata &metadata, reader_s *reader)
rules->set("skill", skill);
}

uint episode = Reader_ReadByte(reader) - 1;
uint episode = Reader_ReadByte(reader);
uint map = Reader_ReadByte(reader) - 1;
metadata.set("mapUri", composeMapUriPath(episode, map).asText());

rules->set("deathmatch", Reader_ReadByte(reader));
if(saveFormat != Hexen && saveVersion == 13)
{
rules->set("fast", Reader_ReadByte(reader));
}
rules->set("noMonsters", Reader_ReadByte(reader));
if(saveFormat == Hexen)
{
Expand Down

0 comments on commit 0ca3c70

Please sign in to comment.