Now I have a better error that's more exact, but I think next level of this is to just show a generic texture for missing ones. Closes #80.

This commit is contained in:
Zed A. Shaw 2025-08-17 11:08:01 -04:00
parent 25a143cf22
commit ae1a48deed
2 changed files with 5 additions and 2 deletions

View file

@ -311,7 +311,6 @@ void System::collision(GameLevel &level) {
void System::remove_from_world(GameLevel &level, Entity entity) {
auto& item_pos = level.world->get<Position>(entity);
level.collision->remove(item_pos.location, entity);
// level.world->remove<Tile>(entity);
// if you don't do this you get the bug that you can pickup
// an item and it'll also be in your inventory
level.world->remove<Position>(entity);