Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Madour committed Jun 1, 2024
1 parent a79c162 commit 1bbd931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/LDtkLoader/DataTypes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ auto operator<<(std::ostream& os, const ldtk::IID& iid) -> std::ostream&;
namespace std {

// specialization for the IID structure, allows to create unordered_set<IID>
template<>
template <>
struct hash<ldtk::IID>
{
std::size_t operator()(const ldtk::IID& iid) const noexcept
Expand All @@ -229,4 +229,4 @@ namespace std {
}
};

}
} // namespace std
6 changes: 2 additions & 4 deletions src/Layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ Layer::Layer(const nlohmann::json& j, const World* w, const Level* l)
auto& new_tile = m_tiles.back();
m_tiles_map.emplace(new_tile.coordId, new_tile);

if (getTileset().hasEnumTags())
{
for (const EnumValue& enumtag : getTileset().getTileEnumTags(tile_id))
{
if (getTileset().hasEnumTags()) {
for (const EnumValue& enumtag : getTileset().getTileEnumTags(tile_id)) {
m_tiles_by_enumtag[enumtag.name].emplace_back(new_tile);
}
}
Expand Down

0 comments on commit 1bbd931

Please sign in to comment.