diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-01 22:27:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-01 22:27:30 +0200 |
commit | 31fd5bbc08234686cf798a93a18e0bb73615d1bf (patch) | |
tree | 59b964d01885916c5d49fef3c168ff10dcbdd93f /shaders/lightmap.cpp | |
parent | 053ea3aa1c443c368f8b43591e3e970e12b50c70 (diff) |
rename entity -> object
Diffstat (limited to 'shaders/lightmap.cpp')
-rw-r--r-- | shaders/lightmap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shaders/lightmap.cpp b/shaders/lightmap.cpp index 0585223b..47a7a5e0 100644 --- a/shaders/lightmap.cpp +++ b/shaders/lightmap.cpp @@ -5,7 +5,7 @@ #include "src/chunk.hpp" #include "src/tile-bbox.hpp" #include "src/tile-atlas.hpp" -#include "src/entity.hpp" +#include "src/object.hpp" #include <utility> #include <Corrade/Containers/PairStl.h> #include <Corrade/Containers/Iterable.h> @@ -371,7 +371,7 @@ void lightmap_shader::add_chunk(Vector2 neighbor_offset, chunk& c) neighbor_offset += Vector2(half_neighbors); add_geometry(neighbor_offset, c); - add_entities(neighbor_offset, c); + add_objects(neighbor_offset, c); } void lightmap_shader::add_geometry(Vector2 neighbor_offset, chunk& c) @@ -407,9 +407,9 @@ void lightmap_shader::add_geometry(Vector2 neighbor_offset, chunk& c) } } -void lightmap_shader::add_entities(Vector2 neighbor_offset, chunk& c) +void lightmap_shader::add_objects(Vector2 neighbor_offset, chunk& c) { - for (const auto& e_ : c.entities()) + for (const auto& e_ : c.objects()) { const auto& e = *e_; if (e.is_virtual()) |