mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-30 01:05:24 +00:00
for structural binding variable mistake
This commit is contained in:
@@ -189,8 +189,8 @@ namespace BBM
|
||||
}
|
||||
if (controllable.bomb && holder.bombCount > 0) {
|
||||
auto spawnPos = position.position.round();
|
||||
for (auto &[__, pos, _] : this->_wal.getScene()->view<PositionComponent, BasicBombComponent>()) {
|
||||
if (pos.position == spawnPos)
|
||||
for (auto &eachEntity: this->_wal.getScene()->view<PositionComponent, BasicBombComponent>()) {
|
||||
if (eachEntity.get<PositionComponent>().position == spawnPos)
|
||||
return;
|
||||
}
|
||||
holder.bombCount--;
|
||||
|
||||
Reference in New Issue
Block a user