Skip to content

Commit

Permalink
B-LUGA: Add debug for check allie and createSprite
Browse files Browse the repository at this point in the history
  • Loading branch information
romainpanno committed Nov 5, 2023
1 parent 7fa63c4 commit 6e41270
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,4 @@ _deps
# End of https://www.toptal.com/developers/gitignore/api/c++,c,clion,cmake

build/*
.idea/
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ namespace Systems {

auto ids = arrSpriteDatas.getExistingsId();
for (auto id : ids) {
Logger::fatal("Creating sprite with id: " + std::to_string(id) + " and path: " + arrSpriteDatas[id].fileName);
auto &spriteDatas = arrSpriteDatas[id];
Raylib::SpriteShared sprite = Raylib::Sprite::fromFile(
spriteDatas.fileName,
Expand Down
1 change: 1 addition & 0 deletions libs/B-luga/include/B-luga/Registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ class Registry {
for (auto group : _allies) {
std::vector<std::size_t> ids = registry.getEntitiesWithOneOfComponents({group.second});
if (std::find(ids.begin(), ids.end(), fstId) != ids.end() && std::find(ids.begin(), ids.end(), scdId) != ids.end()) {
Logger::fatal("This is an ally");
return true;
}
}
Expand Down

0 comments on commit 6e41270

Please sign in to comment.