Skip to content

Commit

Permalink
libcommon: Typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Mar 21, 2014
1 parent 65d4c6b commit d898b8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doomsday/plugins/common/src/g_game.cpp
Expand Up @@ -3381,7 +3381,7 @@ de::game::SessionMetadata *G_CurrentSessionMetadata(de::String const &userDescri
metadata->set("mapTime", mapTime);
#endif

metadata->add("gameRules", G_Rules().toRecord()); // Takes owership.
metadata->add("gameRules", G_Rules().toRecord()); // Takes ownership.

#if !__JHEXEN__
de::ArrayValue *array = new de::ArrayValue;
Expand All @@ -3390,7 +3390,7 @@ de::game::SessionMetadata *G_CurrentSessionMetadata(de::String const &userDescri
bool playerIsPresent = CPP_BOOL(players[i].plr->inGame);
*array << de::NumberValue(playerIsPresent, de::NumberValue::Boolean);
}
metadata->set("players", array); // Takes owership.
metadata->set("players", array); // Takes ownership.
#endif

metadata->set("sessionId", G_GenerateSessionId());
Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/common/src/gamesessionwriter.cpp
Expand Up @@ -103,6 +103,6 @@ void GameSessionWriter::write(String const &userDescription)
outFile.setMode(File::ReadOnly);
LOG_MSG("Wrote ") << outFile.as<NativeFile>().nativePath().pretty();

// Update the cached metadata so we can try to avoid reopening the session.
// Update the cached metadata so we can try to avoid reopening the .save package.
d->session.replaceMetadata(const_cast<SessionMetadata *>(metadata));
}

0 comments on commit d898b8a

Please sign in to comment.