mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-03 02:23:44 +00:00
Fixingn a bug
This commit is contained in:
@@ -126,6 +126,8 @@ namespace BBM
|
||||
return;
|
||||
entity.getComponent<ControllableComponent>().disabled = true;
|
||||
entity.addComponent<TimerComponent>(1s, [](WAL::Entity &ent, WAL::Wal &) {
|
||||
if (!ent.hasComponent<SoundComponent>())
|
||||
return;
|
||||
ent.removeComponent<SoundComponent>();
|
||||
ent.removeComponent<CollisionComponent>();
|
||||
ent.removeComponent<PositionComponent>();
|
||||
|
||||
Reference in New Issue
Block a user