Skip to content

Commit

Permalink
Fixed|IdTech1Converter|MapInfoTranslator: Mistranslated MAPINFO episo…
Browse files Browse the repository at this point in the history
…de ids

The result of some old code from a time before Episode.ID was changed
to a string.
  • Loading branch information
danij-deng committed Nov 28, 2014
1 parent a9c9786 commit 37c53fb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions doomsday/plugins/idtech1converter/src/mapinfotranslator.cpp
Expand Up @@ -1318,15 +1318,14 @@ DENG2_PIMPL_NOREF(MapInfoTranslator)
os << "\n\nHeader { Version = 6; }";

// Output episode defs.
int episodeIdx = 0;
for(auto const pair : defs.episodeInfos)
{
String const episodeId = String::fromStdString(pair.first);
EpisodeInfo const &info = pair.second;

de::Uri startMapUri(info.gets("startMap"), RC_NULL);
if(startMapUri.path().isEmpty()) continue;

String episodeId = String::number(episodeIdx + 1);
// Find all the hubs for this episode.
MapInfos mapInfos = buildHubMapInfoTable(episodeId);

Expand Down Expand Up @@ -1415,8 +1414,6 @@ DENG2_PIMPL_NOREF(MapInfoTranslator)
}
}
os << "\n} # Episode '" << episodeId << "'";

episodeIdx += 1;
}

GameInfo gameInfo;
Expand Down

0 comments on commit 37c53fb

Please sign in to comment.