Switching to Linux to find a memory bug and I want to keep a record of what caused it.
This commit is contained in:
parent
be3eef7082
commit
e51fb8627c
7 changed files with 23 additions and 42 deletions
|
@ -437,8 +437,9 @@ void Raycaster::update_level(GameLevel level) {
|
|||
|
||||
$level.world->query<components::Sprite>([&](const auto ent, auto& sprite) {
|
||||
// player doesn't need a sprite
|
||||
if($level.player == ent) return;
|
||||
update_sprite(ent, sprite);
|
||||
if($level.player != ent) {
|
||||
update_sprite(ent, sprite);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue