mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add entity.despawn(...)
This commit is contained in:
parent
6d7f950410
commit
e11760a5e4
4 changed files with 40 additions and 3 deletions
|
|
@ -40,6 +40,7 @@ void LevelController::update(float delta, bool input, bool pause) {
|
|||
level->objects.end()
|
||||
);
|
||||
|
||||
level->entities->clean();
|
||||
if (!pause) {
|
||||
// update all objects that needed
|
||||
for (const auto& obj : level->objects) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue