Skip to content

Commit

Permalink
libcommon|MapInfo: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jul 8, 2014
1 parent abcb476 commit 93b7abd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doomsday/plugins/common/src/mapinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ void MapInfoParser(ddstring_s const *path)
MapInfo const &info = i->second;
App_Log(DE2_DEV_RES_MSG, "MAPINFO %s { title: \"%s\" hub: %i map: %s warp: %i }",
i->first.c_str(), info.gets("title").toUtf8().constData(),
info.geti("hub"), info.gets("map"), info.geti("warpTrans"));
info.geti("hub"), info.gets("map").toUtf8().constData(),
info.geti("warpTrans"));
}
#endif
}
Expand Down Expand Up @@ -276,11 +277,13 @@ de::Uri P_TranslateMapIfExists(uint map)
{
if(info.geti("hub"))
{
App_Log(DE2_DEV_MAP_VERBOSE, "Warp %i translated to map %s, hub %i", map, info.gets("map"), info.geti("hub"));
App_Log(DE2_DEV_MAP_VERBOSE, "Warp %i translated to map %s, hub %i",
map, info.gets("map").toUtf8().constData(), info.geti("hub"));
return de::Uri(info.gets("map"), RC_NULL);
}

App_Log(DE2_DEV_MAP_VERBOSE, "Warp %i matches map %s, but it has no hub", map, info.gets("map"));
App_Log(DE2_DEV_MAP_VERBOSE, "Warp %i matches map %s, but it has no hub",
map, info.gets("map").toUtf8().constData());
matchedWithoutHub = de::Uri(info.gets("map"), RC_NULL);
}
}
Expand Down

0 comments on commit 93b7abd

Please sign in to comment.