Fixing more than two players scores

This commit is contained in:
Zoe Roux
2021-06-19 15:54:25 +02:00
parent 4bc5b54a2e
commit d8da52af55
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -121,7 +121,9 @@ namespace BBM
return;
entity.getComponent<ControllableComponent>().disabled = true;
entity.addComponent<TimerComponent>(1s, [](WAL::Entity &ent, WAL::Wal &) {
ent.scheduleDeletion();
ent.removeComponent<SoundComponent>();
ent.removeComponent<CollisionComponent>();
ent.removeComponent<PositionComponent>();
});
});
}
-1
View File
@@ -92,6 +92,5 @@ namespace BBM
newCameraPos.y = maxDist;
newCameraPos.z -= newCameraPos.z > 1 ? 1 : 0;
pos.position += (newCameraPos.abs() - pos.position.abs()) / 10;
}
}