Skip to content

Commit

Permalink
libcommon|GameSession: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Aug 19, 2014
1 parent 889028e commit 39ea024
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doomsday/plugins/common/src/gamesession.cpp
Expand Up @@ -831,15 +831,13 @@ Record *GameSession::mapGraphNodeDef()
{
if(Record const *episode = episodeDef())
{
/// @todo cache this result?
return defn::Episode(*episode).tryFindMapGraphNode(mapUri().compose());
}
return 0;
}

Record *GameSession::mapInfo()
{
/// @todo cache this result?
return Defs().mapInfos.tryFind("id", mapUri().compose());
}

Expand Down Expand Up @@ -1060,7 +1058,7 @@ void GameSession::reloadMap()
// Restart the session entirely.
briefDisabled = true; // We won't brief again.
end();
begin(d->rules, d->episodeId, mapUri(), ::gameMapEntrance);
begin(d->rules, d->episodeId, d->mapUri, ::gameMapEntrance);
}
}

Expand Down

0 comments on commit 39ea024

Please sign in to comment.